When the user click on the search button, he got 500 from the server (xhr error).

Should I display a popup toast say "error.." or put the message in the page instead of the results area?

1 Answer 1


It depends on the behavior of your page. A toast message does make sense if the user can do something else instead and you want to inform the user but not interrupt her. In your case this does not seem to be the case.

So not knowing more I would suggest to display the error instead of the results list. But it is important to gibe the user a hint on what to do next. Should the user just wait a minute and try again? Is the error handled by someone, if so inform the user. etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.