public static ErrorResponse methodNotAllowed(String message) {
        return new ErrorResponse(METHOD_NOT_ALLOWED, errorCodes.METHOD_NOT_ALLOWED.name(), message);
    }
A HTTP JSON response containing an error code and a message

@author bratseth
container-core/src/main/java/com/yahoo/restapi/ErrorResponse.java