Last active
December 19, 2018 05:57
-
-
Save alexpermiakov/abe91b194dfd5c07ae7d3d1554c9fbfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class HTTP400Error extends HTTPClientError { | |
readonly statusCode = 400; | |
constructor(message: string | object = "Bad Request") { | |
super(message); | |
} | |
} | |
export class HTTP404Error extends HTTPClientError { | |
readonly statusCode = 404; | |
constructor(message: string | object = "Not found") { | |
super(message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment