add custom exception class with status codes