---
lang: en
title: 'API docs: rest.resthttperrors.validationerrordetails'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.resthttperrors.validationerrordetails.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RestHttpErrors](./rest.resthttperrors.md) &gt; [ValidationErrorDetails](./rest.resthttperrors.validationerrordetails.md)

## 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[]`<!-- -->.

<b>Signature:</b>

```typescript
interface ValidationErrorDetails 
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [code](./rest.resthttperrors.validationerrordetails.code.md) | <code>string</code> | A single word code represents the error's type. |
|  [info](./rest.resthttperrors.validationerrordetails.info.md) | <code>object</code> | Some additional details that the 3 attributes above don't cover. |
|  [message](./rest.resthttperrors.validationerrordetails.message.md) | <code>string</code> | A human readable description of the error. |
|  [path](./rest.resthttperrors.validationerrordetails.path.md) | <code>string</code> | A path to the invalid field. |


