Methods
(static) create(config) → {ExpectationFailedError|LengthRequiredError|NotAcceptableError|ProxyAuthenticationRequiredError|GoneError|TooManyRequestsError|UriToLongError|UnauthorizedError|BadRequestError|NotFoundError|UnsupportedMediaTypeError|ContentTooLargeError|PreconditionFailedError|ConflictError|PaymentRequiredError|RangeNotSatisfiableError|ForbiddenError|RequestTimeoutError|UnprocessableEntityError|ResponseError|UnavailableForLegalReasonsError|InternalServerError|ServiceUnavailableError|MethodNotAllowedError}
Creates a ResponseError instance.
Parameters:
Name | Type | Description |
---|---|---|
config | Object | |
- Source
Throws:
TypeError
Returns:
- Type:
- ExpectationFailedError |
LengthRequiredError | NotAcceptableError | ProxyAuthenticationRequiredError | GoneError | TooManyRequestsError | UriToLongError | UnauthorizedError | BadRequestError | NotFoundError | UnsupportedMediaTypeError | ContentTooLargeError | PreconditionFailedError | ConflictError | PaymentRequiredError | RangeNotSatisfiableError | ForbiddenError | RequestTimeoutError | UnprocessableEntityError | ResponseError | UnavailableForLegalReasonsError | InternalServerError | ServiceUnavailableError | MethodNotAllowedError