Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.48 KB

http-version-not-supported.md

File metadata and controls

50 lines (36 loc) · 1.48 KB

What does 505 HTTP Version Not Supported mean?

The 505 HTTP Version Not Supported response code means that the version of HTTP used in the request is not supported by the server.

Parameters

Field Type Description Default
message string The representative message for this error. empty
options ExceptionOptions A detailed message of this error

Examples

Without arguments

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);
  }
});

With arguments

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.