HTTP status codes determine whether the request was completed correctly or not, and there is no warning status. If you want to provide information about the results of your internal functions, you must add the status of the information to the response content, for example:
{ status: "WARNING", code: "WARNING-CODE" }
source share