This project adheres to Semantic Versioning.
0.0.2 - 2024-08-27
hasErrorResponse
andhasProblemDetails
now check ofundefined
andnull
, preventing runtime errors.
- Node 22 is now supported
0.0.1 - 2024-07-03
InruptClientError
: Superclass for all Inrupt client libraries runtime errors.ClientHttpError
,hasProblemDetails
,hasErrorResponse
: Class for runtime error thrown upon reception of an HTTP error response, i.e. 4xx and 5xx ranges. The two associated type guards are available to test for the presence of the specific properties exposed by the class.BadRequestError
,ConflictError
,ForbiddenError
,GoneError
,InternalServerError
,MethodNotAllowedError
,NotAcceptableError
,NotFoundError
,PreconditionFailedError
,TooManyRequestsError
,UnauthorizedError
,UnsupportedMediaTypeError
: Specializations of theClientHttpError
to represent common HTTP error responses.handleErrorResponse
: a function to map the received HTTP error to the appropriate error class.