Optionalbody: unknownThe response body of the API request.
Optionalheaders: Record<string, string | number | readonly string[]>The headers of the API request.
A promise that resolves with the response body.
Handles a failed API request by returning an error.
The error that occurred during the API request.
A promise that resolves with the error.
Handles a health check response with appropriate status code.
The health check results
Whether all the components are UP
A promise that resolves with the response
Handles a successful API request by returning the response body.