adds error handling for response status