Page Contents
Home > @loopback/rest > RestHttpErrors > ValidationErrorDetails
RestHttpErrors.ValidationErrorDetails interface
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[].
Signature:
interface ValidationErrorDetails
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| [code](/doc/en/lb4/apidocs.rest.resthttperrors.validationerrordetails.code.html) | string | A single word code represents the error's type. | |
| [info](/doc/en/lb4/apidocs.rest.resthttperrors.validationerrordetails.info.html) | object | Some additional details that the 3 attributes above don't cover. | |
| [message](/doc/en/lb4/apidocs.rest.resthttperrors.validationerrordetails.message.html) | string | A human readable description of the error. | |
| [path](/doc/en/lb4/apidocs.rest.resthttperrors.validationerrordetails.path.html) | string | A path to the invalid field. |