Are the Lemmy API error responses documented anywhere?

I've been looking at the rest client built into Jerboa, to see if I could maybe contribute to making error handling a bit better.

The Lemmy API docs don't seem to list the error codes/error bodies that can be returned by the API. Are these documented somewhere else? Or do I need to start reading the Rust code of the server itself?