---
lang: en
title: 'API docs: rest.resthttperrors.validationerrordetails.code'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.resthttperrors.validationerrordetails.code.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) &gt; [code](./rest.resthttperrors.validationerrordetails.code.md)

## RestHttpErrors.ValidationErrorDetails.code property

A single word code represents the error's type.

<b>Signature:</b>

```typescript
code: string;
```

