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