Constructor
new LinoHttpError(status, detailopt, optionsopt)
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
status |
number | HTTP status code |
|||||||||||||||||||||||||
detail |
string |
<optional> |
Human readable explanation of this occurrence |
||||||||||||||||||||||||
options |
object |
<optional> |
Additional problem members Properties
|
- Source:
Classes
Methods
toProblem(instanceopt) → {object}
Render the error as the problem details object of the specification.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
instance |
string |
<optional> |
URI of this occurrence when not already set |
- Source:
Returns:
Problem details ready to be encoded
- Type
- object