Answer the question
In order to leave comments, you need to log in
How to handle errors coming from PHP server in React?
I set http_response_code () on the server side, for example 404 and at the same time I do
return json_encode([
'status' => false,
'message' => $message
], JSON_UNESCAPED_UNICODE);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question