What is the appropriate HTTP status code response for a general unsuccessful request (not an error)?
问题 I'm creating a RESTful API that will process a number of user interactions, including placing orders using stored credit cards. In the case of a successful order, I'm returning a 200 OK, and in the case where the order request is malformed or invalid I'm returning a 400 Bad Request. But what should I return if there is a problem during the actual processing of the order? Client POSTS order to server for a user resource. If user does not exist, 404 Not Found is returned. Order format and