{"action":"closed","issue":{"url":"https://api.github.com/repos/TykTechnologies/tyk/issues/233","repository_url":"https://api.github.com/repos/TykTechnologies/tyk","labels_url":"https://api.github.com/repos/TykTechnologies/tyk/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/TykTechnologies/tyk/issues/233/comments","events_url":"https://api.github.com/repos/TykTechnologies/tyk/issues/233/events","html_url":"https://github.com/TykTechnologies/tyk/issues/233","id":146283430,"number":233,"title":"Reject request in middleware","user":{"login":"dhjf","id":11190396,"avatar_url":"https://avatars.githubusercontent.com/u/11190396?v=3","gravatar_id":"","url":"https://api.github.com/users/dhjf","html_url":"https://github.com/dhjf","followers_url":"https://api.github.com/users/dhjf/followers","following_url":"https://api.github.com/users/dhjf/following{/other_user}","gists_url":"https://api.github.com/users/dhjf/gists{/gist_id}","starred_url":"https://api.github.com/users/dhjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhjf/subscriptions","organizations_url":"https://api.github.com/users/dhjf/orgs","repos_url":"https://api.github.com/users/dhjf/repos","events_url":"https://api.github.com/users/dhjf/events{/privacy}","received_events_url":"https://api.github.com/users/dhjf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-06T11:30:33Z","updated_at":"2016-04-08T06:02:05Z","closed_at":"2016-04-08T06:02:05Z","body":"I cannot find any documentation/examples of how to this, so I'll ask here:\r\nIn a middleware script, is it possible to send back a response to the client (e.g. HTTP 401), such that the request never reaches the backend service? An example would be a validation script."}}