Page Contents

Home > @loopback/rest > RestHttpErrors

RestHttpErrors namespace

Signature:

export declare namespace RestHttpErrors 

Functions

Function Description
[invalidData(data, name, extraProperties)](/doc/en/lb4/apidocs.rest.resthttperrors.invaliddata.html)
[invalidParamLocation(location)](/doc/en/lb4/apidocs.rest.resthttperrors.invalidparamlocation.html)
[invalidRequestBody(details)](/doc/en/lb4/apidocs.rest.resthttperrors.invalidrequestbody.html)
[missingRequired(name)](/doc/en/lb4/apidocs.rest.resthttperrors.missingrequired.html)
[unsupportedMediaType(contentType, allowedTypes)](/doc/en/lb4/apidocs.rest.resthttperrors.unsupportedmediatype.html)

Interfaces

Interface Description
[ValidationErrorDetails](/doc/en/lb4/apidocs.rest.resthttperrors.validationerrordetails.html) An invalid request body error contains a `details` property as the machine-readable error. Each entry in `error.details` contains 4 attributes: `path`, `code`, `info` and `message`. `ValidationErrorDetails` defines the type of each entry, which is an object. The type of `error.details` is `ValidationErrorDetails[]`.

Variables

Variable Description
[INVALID\_REQUEST\_BODY\_MESSAGE](/doc/en/lb4/apidocs.rest.resthttperrors.invalid_request_body_message.html)