UnsupportedResponseTypeError¶
The authorization server does not supported obtaining an authorization code using this method. See Section 4.1.2.1 of RFC 6749.
const UnsupportedResponseTypeError = require('oauth2-server/lib/errors/unsupported-response-type-error');
new UnsupportedResponseTypeError(message, properties)¶
Instantiates an UnsupportedResponseTypeError.
Arguments:
| Name | Type | Description |
|---|---|---|
| [message=undefined] | String|Error | See new OAuthError(message, properties). |
| [properties={}] | Object | See new OAuthError(message, properties). |
| [properties.code=400] | Object | See new OAuthError(message, properties). |
| [properties.name=’unsupported_response_type’] | String | The error name used in responses generated from this error. |
Return value:
A new instance of UnsupportedResponseTypeError.
Remarks:
const err = new UnsupportedResponseTypeError();
// err.message === 'Bad Request'
// err.code === 400
// err.name === 'unsupported_response_type'
name¶
Typically 'unsupported_response_type'. See OAuthError#name.