Make promises fail with server error responses