Base solution for your next web application
Open Closed

How to return custom status and message from AppService? #5938


User avatar
0
mirzanas created

How can I return custom status (404 or any another) and custom exception(or message) using AppService from backend. Example: UI call back-end get method and backend did't find needed data or some bussines validation accure, so I want return the status 404, with my exception message, but I don't want that ui treat this like usual exception and show UI standart exception modal, better for me that I could provide custom behavior for user?


4 Answer(s)