The 505 HTTP Version Not Supported
response code means that the version of HTTP used in the request is not supported by the server.
Field | Type | Description | Default |
---|---|---|---|
message |
string | The representative message for this error. | empty |
options |
ExceptionOptions | A detailed message of this error |
import { HttpVersionNotSupportedException } from 'custom-error-service';
import express from 'express';
const app = express();
app.get('/', (request, response) => {
try {
throw new HttpVersionNotSupportedException();
} catch (error) {
handleError(error);
}
});
import { HttpVersionNotSupportedException } from 'custom-error-service';
import express from 'express';
const app = express();
app.get('/', (request, response) => {
try {
throw new HttpVersionNotSupportedException('Test Error');
} catch (error) {
handleError(error);
}
});
© Copyright 2019-present - Customer Error Service by Isidro A. Lopez G.