Page Contents

Home > @loopback/rest > RestHttpErrors > invalidRequestBody

RestHttpErrors.invalidRequestBody() function

Signature:

function invalidRequestBody(details: ValidationErrorDetails[]): HttpErrors.HttpError & {
        details: ValidationErrorDetails[];
    };

Parameters

Parameter Type Description
details ValidationErrorDetails[]  

Returns:

HttpErrors.HttpError & { details: ValidationErrorDetails[]; }