code
code copied to clipboard
Handle bad response codes in MC auth
This commit adds handling for unexpected non-200 status codes as well as unifies response deserialization.
The goal is to avoid trying to deserialize errornous responses as successful ones, and with that to also provide a much clearer and useful debugging information for failed requests.