Exemplo n.º 1
0
            public void Handle(HttpStatusCode statusCode, NancyContext context)
            {
                var error = new NotFoundStatusCodeHandlerResult
                {
                    StatusCode = statusCode,
                    Message    = "Not Found."
                };

                context.Response = this.responseNegotiator.NegotiateResponse(error, context);
            }
            public void Handle(HttpStatusCode statusCode, NancyContext context)
            {
                var error = new NotFoundStatusCodeHandlerResult
                {
                    StatusCode = statusCode,
                    Message = "Not Found."
                };

                context.Response = this.responseNegotiator.NegotiateResponse(error, context);
            }