Utility func ctx.Forbidden for 403 response

Incorporate the spirit of f0f9b39e78387a095ed5d922da9554ba6e7e0725 by
Philip Deuchler.
unit test for GuessMimetypeWrapper