0

I have a GET /v2/developer/jhUxad8 endpoint which get developer from database and serialize it to json.

What http status code should I return when serialization fail?

1 Answer 1

1

https://www.codetinkerer.com/2015/12/04/choosing-an-http-status-code.html

What http status code should I return when serialization fail?

If I'm understanding you correctly, the server understands the request, and is trying to fulfill it, but because of a data problem is unable to do so.

500 Internal Server Error

The 500 (Internal Server Error) status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.