Proper HTTP code for business logic error from the REST endpoint

What HTTP status code would you choose to return an error like "insufficient funds to make a payment" from the endpoint say POST /payments? Just 400 Bad Request or 403 Forbidden or 422 Unprocessable Entity or different?

submitted by /u/varmanpl
[link] [comments]

from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more! https://ift.tt/Ps6igzw

Leave a comment

Design a site like this with WordPress.com
Get started
search previous next tag category expand menu location phone mail time cart zoom edit close