Skip to content

Function: createErrorFromStatus()

function createErrorFromStatus(status, message): ChanomhubError;

Defined in: errors/index.ts:82

Creates the appropriate error class based on HTTP status code

ParameterType
statusnumber
messagestring

ChanomhubError