Changed error handling

Added exception application
adjusted routes
added status codes in application helper