Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libs/shared/ofrep-core/src/lib/api/ofrep-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ export class OFREPApi {
}

if (response.status === 401) {
throw new OFREPApiUnauthorizedError(response);
throw new OFREPApiUnauthorizedError(response, 'OFREP request failed: unauthorized');
}

if (response.status === 403) {
throw new OFREPForbiddenError(response);
throw new OFREPForbiddenError(response, 'OFREP request failed: forbidden');
}

if (response.status === 429) {
throw new OFREPApiTooManyRequestsError(response);
throw new OFREPApiTooManyRequestsError(response, 'OFREP request failed: too many requests');
}

if (response.status === 200 && !this.isJsonMime(response)) {
Expand Down