* - The `objectOrError` argument defines the JSON response body or the message string.
22
* - The `descriptionOrOptions` argument contains either a short description of the HTTP error or an options object used to provide an underlying error cause.
23
*
24
* By default, the JSON response body contains two properties:
25
* - `statusCode`: this will be the value 418.
26
* - `message`: the string `"I'm a Teapot"` by default; override this by supplying
27
* a string in the `objectOrError` parameter.
28
*
29
* If the parameter `objectOrError` is a string, the response body will contain an
30
* additional property, `error`, with a short description of the HTTP error. To override the
31
* entire JSON response body, pass an object instead. Nest will serialize the object
32
* and return it as the JSON response body.
33
*
34
* @param objectOrError string or object describing the error condition.
35
* @param descriptionOrOptions either a short description of the HTTP error or an options object used to provide an underlying error cause