kibana/test/api_integration/apis/saved_queries
Lukas Olson 57b7efc3eb
Update error handling for saved query service (#163904)
## Summary

Resolves https://github.com/elastic/kibana/issues/153497.

Updates the saved query service to properly handle & return errors from
the saved object client. Instead of displaying "internal server error"
and returning 500, specific error messages occur for corresponding saved
object client errors.

After:


![image](f8ba7b90-77fe-4db9-8377-0a1f878fe3a0)

### To do

- [x] API integration tests

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-22 13:09:00 -07:00
..
index.js Update error handling for saved query service (#163904) 2023-08-22 13:09:00 -07:00
saved_queries.js Update error handling for saved query service (#163904) 2023-08-22 13:09:00 -07:00