Page Contents

Home > @loopback/rest > RestHttpErrors

RestHttpErrors namespace

Signature:

export declare namespace RestHttpErrors 

Functions

Function Description
invalidData(data, name, extraProperties)  
invalidParamLocation(location)  
invalidRequestBody()  
missingRequired(name)  
unsupportedMediaType(contentType, allowedTypes)  

Interfaces

Interface Description
ValidationErrorDetails 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