Add support for HTTP 501 Not Implemented responses from Desk API v2
Add debug information