added base handler for handling exceptions and status codes