Modified all onFailure bodies. Now we are able to retrieve the statusCode as well as headers.