Skip to content

Commit

Permalink
Update httpClient.ts
Browse files Browse the repository at this point in the history
Add more description
  • Loading branch information
mmaruniak committed Apr 10, 2024
1 parent 619fc44 commit 5ebc1bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/httpClient/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ export interface HttpClientOptions {
*/
timeout?: number;
/**
* Override the default mapping of status code when wrapping error responses returned by dependencies into ClientException
* Override the default mapping of status code when wrapping error responses returned by dependencies into ClientException.
* This is useful, when dependent services return incorrect status codes than then drive incorrect behavior upstream (e.g. 403 instead of 503)
*/
clientExceptionStatusCodeMapOverride?: Record<number, number>;
}
Expand Down

0 comments on commit 5ebc1bf

Please sign in to comment.