On Wed, Feb 24, 2016 at 10:46 AM, David Sheets <she...@alum.mit.edu> wrote:

> On Wed, Feb 24, 2016 at 3:44 PM, Grégoire Henry
> <gregoire.he...@ocamlpro.com> wrote:
> > Hi Anil,
> >
> >   The service only answers to POST request, hence the 404 you hit.
>
> Where is the source code for the service? I believe it should return
> 405 in this case with an Allow header listing POST.


This indeed should be the behavior. See the following HTTP response diagram
and ocaml-webmachine implementation:


https://raw.githubusercontent.com/wiki/webmachine/webmachine/images/http-headers-status-v3.png

https://github.com/inhabitedtype/ocaml-webmachine/blob/9d63166/lib/webmachine.ml#L453-L464

-Spiros E.
_______________________________________________
opam-devel mailing list
opam-devel@lists.ocaml.org
http://lists.ocaml.org/listinfo/opam-devel

Reply via email to