[pmwiki-users] 404 on Abort?
Mikael Nilsson
mini at nada.kth.se
Mon Dec 4 13:06:29 CST 2006
mån 2006-12-04 klockan 13:00 -0600 skrev Patrick R. Michaud:
> On Mon, Dec 04, 2006 at 07:27:53PM +0100, Mikael Nilsson wrote:
> > Why doesn't pmwiki give 404 errors on Abort() ??
>
> Hmm. I agree that Abort() should probably return something
> other than 200, but returning 404 (not found) doesn't seem
> correct. Most aborts are caused by things other than
> the requested resource not being available, so we should
> return a more appropriate error code.
Right, correct. In fact, different codes probably fit different
situations, so an extra argument to Abort() might be handy.
400 Bad Request
403 Forbidden
500 Internal Server Error
seem to fit
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
/Mikael
>
> So, I'll see about finding a better error code and return that.
>
> Thanks!
>
> Pm
>
--
Plus ça change, plus c'est la même chose
More information about the pmwiki-users
mailing list