Reformatted file and added some error handling to unpick a failure response from the proxied request