In the `getDetails` method, when the response status code is 5xx, it raises an error when attempting to read a JSON. For example, when there is a 503 and it raises `ContentTypeError: Attempt to decode JSON with unexpected mimetype: text/plain`.