Page Contents

Home > @loopback/rest > RestHttpErrors > invalidData

RestHttpErrors.invalidData() function

Signature:

function invalidData<T, Props extends object = {}>(data: T, name: string, extraProperties?: Props): HttpErrors.HttpError & Props;

Parameters

Parameter Type Description
data T
name string
extraProperties Props _(Optional)_

Returns:

HttpErrors.HttpError & Props