UNPKG

@riculum/js-errors

Version:

A simple middleware for handling HTTP errors

15 lines (14 loc) 573 B
/** * 505 HTTP Version Not Supported * The HyperText Transfer Protocol (HTTP) 505 HTTP Version Not Supported response status code * indicates that the HTTP version used in the request is not supported by the server. * * Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505 */ export class HTTPVersionNotSupportedError extends Error { constructor (errorMessage, errorCode = 505, errorTitle = 'HTTP Version Not Supported') { super(errorMessage); this.errorCode = errorCode; this.errorTitle = errorTitle } }