Home Which HTTP status code to return when entity already processed
Reply: 0

Which HTTP status code to return when entity already processed

user379
1#
user379 Published in June 23, 2018, 11:41 pm

I have an API endpoint that anonymises a customer's personal data.

https://shop.dev/gdpr/customer/anonymize?id=123

If a customer cannot be found, you return a 404. If validation fails, you send a 400.

What would be the correct status code to return if a customer is already anonymised and the action should not be processed?

You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO