Store possible API errors thrown by middlewares ⛔
Currently, the API stores errors thrown by controllers and stores them in the database so they are easier to find. However, the same does not happen with the errors thrown by the API Middlawares. It would be nice to add this functionality for us to help discover new bugs.