Skip to content

Documentation / @ember-data/adapter / error / ForbiddenError

Defined in: packages/adapter/src/error.js:271

A ForbiddenError equates to a HTTP 403 Forbidden response status. It is used by an adapter to signal that a request to the external API was valid but the server is refusing to respond to it. If authorization was provided and is valid, then the authenticated user does not have the necessary permissions for the request.

ForbiddenError

ts
class ForbiddenError(errors, message): void;

Defined in: packages/adapter/src/error.js:271

A ForbiddenError equates to a HTTP 403 Forbidden response status. It is used by an adapter to signal that a request to the external API was valid but the server is refusing to respond to it. If authorization was provided and is valid, then the authenticated user does not have the necessary permissions for the request.

ForbiddenError

Parameters

errors

any

message

any

Returns

void

Properties

extend()

ts
static extend: (__namedParameters) => {
(errors, message): void;
  extend: ({ message: defaultMessage }?: {}) => { (errors: any, message: any): void; prototype: any; extend: ...; };
  prototype: any;
};

Defined in: packages/adapter/src/error.js:112

Parameters

__namedParameters

Returns

ts
(errors, message): void;
Parameters
errors

any

message

any

Returns

void

extend
ts
extend: ({ message: defaultMessage }?: {}) => { (errors: any, message: any): void; prototype: any; extend: ...; };
prototype
ts
prototype: any;

Released under the MIT License.