Module

isMethodNotAllowed

Validate HTTP Status code 405 type CLIENT ERROR

Parameters:
Name Type Description
statusCode Integer

The HTTP Status code

View Source client-error/is-method-not-allowed.js, line 3

When the statusCode is different then 405

HTTPStatusError
Boolean