Skip to main content

createApiError

createApiError(status, message): ApiError

Creates a ApiError with the given HTTP status and message.

Parameters

status

number

HTTP status code

message

string

error message

Returns

ApiError

API error instance