Implement error handling and responses for all endpoints that returns the most appropriate status code for a given error and outputs messages that match the canonical Typescript PDS repo and/or lexicon outputs.
A flexible way to handle this (from the Rocket.rs docs) is using an enum that derives Responder as follows:
Implement error handling and responses for all endpoints that returns the most appropriate status code for a given error and outputs messages that match the canonical Typescript PDS repo and/or lexicon outputs.
A flexible way to handle this (from the Rocket.rs docs) is using an enum that derives Responder as follows: