make response.status available

if the server returns the data when successful or a json otherwise, I need the HTTP status to decide how to process the response.