@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
63 lines (33 loc) • 1.01 kB
Markdown
---
lang: en
title: 'API docs: rest.normalizeparsingerror'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.normalizeparsingerror.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [normalizeParsingError](./rest.normalizeparsingerror.md)
## normalizeParsingError() function
Normalize parsing errors as `4xx`
**Signature:**
```typescript
export declare function normalizeParsingError(err: HttpError): HttpError<number>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
err
</td><td markdown="1">
HttpError
</td><td markdown="1">
</td></tr>
</tbody></table>
**Returns:**
HttpError<number>