Module etcd-client.error.http
Errors caused by HTTP.
Functions
| new (response) | Create a new HttpError from the response. |
| ack (obj) | Acknowledge is object HttpError. |
Tables
| HttpError | HttpError |
Functions
- new (response)
-
Create a new HttpError from the response.
Parameters:
- response
(table)
A response from a HTTP client.
Returns:
- response
(table)
- ack (obj)
-
Acknowledge is object HttpError.
Parameters:
- obj
(table)
An object to check.
Returns:
-
true if obj is HttpError or false
- obj
(table)
Tables
- HttpError
-
HttpError It may contains additional fields exported from a http response
Fields:
- status
(integer)
HTTP code.
- reason
(string)
Human readable interpretation of the code. Not very useful at the moment of writting ('Ok' or 'Unknown').
- status
(integer)