Improved assertion of NotFoundHTTPException.