My application needs to save user POST data with inactive status 'true' if one of the validation fails.
What should be the http response code if I need to communicate request being saved but with inactive status true?
My application needs to save user POST data with inactive status 'true' if one of the validation fails.
What should be the http response code if I need to communicate request being saved but with inactive status true?
I guess you can return status code 202 Accepted, which means accepted but not processed.
202 Accepted
The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place.