Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom behavior when request doesn't match any expectations #97

Open
RaviDesai opened this issue Dec 10, 2014 · 1 comment
Open

Custom behavior when request doesn't match any expectations #97

RaviDesai opened this issue Dec 10, 2014 · 1 comment

Comments

@RaviDesai
Copy link

Is there some way to customize the behavior of what Nocilla does when a request does not match any of the expectations set up in Nocilla? Right now Nocilla just throws an NSException, but I would really like to see it fail with a 404 error instead in certain cases.

@RaviDesai RaviDesai changed the title Custom behavior request matches nothing Custom behavior when request doesn't match any expectations Dec 10, 2014
@hepengzhang
Copy link

thumb up on this. It should really just call URLProtocol:didFailWithError: instead of raise an exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants