jshttp / http-assert

assert with status codes
MIT License
151 stars 14 forks source link

do not expose illegal status #3

Closed dead-horse closed 10 years ago

dead-horse commented 10 years ago

make http-assert the same logic with koa.

another is merge(err, opts), in koa's ctx.throw, it will ignore status, expose in opts, http-assert won't.

seems both make sense to me, but can we make these also as the same logic?

eivindfjeldstad commented 10 years ago

thanks! yeah, I think that's a good idea as well