Separate success and failure endpoints.