Created more specific exceptions
Use again IntegrityError and introduce custom exceptions
Use custom exceptions in tests
Use custom DBIntegrityError exceptions to format application error responses
Solve issue with non JSON serializable error messages