body:`{"message": "Something went wrong", "errors": [{"name": "error1", "reason": "invalid input"}]}`,
expected:"Something went wrong: invalid input",
},
{
name:"403 Forbidden HTML",
body:`<!DOCTYPE html><html><head><title>403 Forbidden</title></head><body><h1>403 Forbidden</h1><p>You don't have permission to access this resource.</p></body></html>`,
expected:"server returned HTML instead of JSON response, body: <!DOCTYPE html><html><head><title>403 Forbidden</title></head><body><h1>403 Forbidden</h1><p>You don't have permission to access this resource.</p></body></html>",
expected:"server returned HTML instead of JSON response, body: <!DOCTYPE html><html><head><title>Error Page</title></head><body>"+strings.Repeat("A",135)+"...",