Home REST HTTP status codes for failed validation or invalid duplicate
Reply: 0

REST HTTP status codes for failed validation or invalid duplicate

user458
1#
user458 Published in June 24, 2018, 11:57 pm

I'm building an application with a REST-based API and have come to the point where i'm specifying status codes for each requests.

What status code should i send for requests failing validation or where a request is trying to add a duplicate in my database?

I've looked through http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html but none of them seems right.

Is there a common practice when sending status codes?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.395953 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO