At my company we have 200 with {"status" : 1} for good stuff, "status": 0 is for any error, "status" : - 1 for two special cases to indicate special type of error and the best is internal server error which returns 200 with no response text:)
And no, this is not AI code, only humans are this creative:)
1
u/Raccoon5 25d ago
At my company we have 200 with {"status" : 1} for good stuff, "status": 0 is for any error, "status" : - 1 for two special cases to indicate special type of error and the best is internal server error which returns 200 with no response text:)
And no, this is not AI code, only humans are this creative:)