Class UnsupportedMediaTypeHttpError

An error thrown when the media type of incoming data is not supported by a parser.

Hierarchy

  • BaseHttpError
    • UnsupportedMediaTypeHttpError

Constructors

Properties

cause?: unknown
errorCode: string
message: string
name: string
stack?: string
statusCode: 415
isInstance: ((error) => error is HttpError<415>)

Type declaration

    • (error): error is HttpError<415>
    • Checks whether the given error is an instance of this class.

      Parameters

      • error: unknown

      Returns error is HttpError<415>

statusCode: 415

The status code corresponding to this error class.

uri: NamedNode<string>

A unique URI identifying this error class.

Methods

  • Initializes the error metadata.

    Returns void