So I just had a look at a fairly new restful api, written in kotlin.
The developers who made the api decided to be smart about error handling -
instead of doing error handling in every api endpoint - why not just do some
generic error handling.
The error handling