Problem
Current API errors are not cleanly separated from domain specific errors, don't include an HTTP error code, and don't appear within the generated OpenAPI specification.
Solution
Each endpoint grabs domain specific errors, and repackage them as digestible web errors, and use exception mappers to grab these errors which are thrown to create the appropriate HTTP response alongside OpenAPI yml specification.
Problem
Current API errors are not cleanly separated from domain specific errors, don't include an HTTP error code, and don't appear within the generated OpenAPI specification.
Solution
Each endpoint grabs domain specific errors, and repackage them as digestible web errors, and use exception mappers to grab these errors which are thrown to create the appropriate HTTP response alongside OpenAPI yml specification.