Implement a Error Handler which outputs errors in json api Format And log the Errors in a Logging database.