Answer the question
In order to leave comments, you need to log in
How to get error text via AJAX in PHP?
I am learning how to do SPA. I use Laravel for this in conjunction with Vue. Data exchange with the server occurs exclusively through AJAX (Axios). And now, trying to send an email to reset the password, I ran into a problem:
In the response from the server, only the error code is returned (note I have 500 Internal server Error) But I would like the text itself to be returned. To understand what exactly went wrong...
Answer the question
In order to leave comments, you need to log in
Before submitting
DevTools -> Network ( Chrome )
will be highlighted in red
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question