Skip to content

Instantly share code, notes, and snippets.

@alexpermiakov
Last active December 19, 2018 05:57
Show Gist options
  • Save alexpermiakov/abe91b194dfd5c07ae7d3d1554c9fbfe to your computer and use it in GitHub Desktop.
Save alexpermiakov/abe91b194dfd5c07ae7d3d1554c9fbfe to your computer and use it in GitHub Desktop.
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