A pluggable exception handler for REST APIs.