Fixed error handling on the frontend. Refactoring error responses.