and show error status, error message and a phrase about that error
I just can get a status error from server and I need a library or a json file to get message and phrase from that.
I could not find any in google
do you know any?
or do you have a better idea for this situation?
What
I have a react app It connects to an API I want to show something to user like 'the page you are looking for might have been removed had its name changed or istemporarily unavailable' when his request fails with status 404 But i just can get an status error from server when request fails I was wondering is there any library that can do it for me or I have to write all the messages by myself
https://nodejs.org/api/http.html#httpstatus_codes
my back-end written with Laravel actually But I do not want something like 'Not Found' or 'Forbidden' I want a phrase that describe the error for user
check out laravel docs for http error handling
I think you should probably just write them for the status codes you have then
Yeah I'll do that Thank you
Обсуждают сегодня