WebAPI exception handling.