provide different interface for response and exception.