mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-06 20:10:05 +00:00
fix(*): handled 404s, set correct accept headers
This commit is contained in:
7
src/types/NotFoundError.ts
Normal file
7
src/types/NotFoundError.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export class NotFoundError extends Error {
|
||||
constructor(public url: string) {
|
||||
super(`Error: Resource at ${url} was not found`)
|
||||
this.name = 'NotFoundError'
|
||||
Object.setPrototypeOf(this, NotFoundError.prototype)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user