<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 10:46 AM, David Sheets <span dir="ltr"><<a href="mailto:sheets@alum.mit.edu" target="_blank">sheets@alum.mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Wed, Feb 24, 2016 at 3:44 PM, Grégoire Henry<br>
<<a href="mailto:gregoire.henry@ocamlpro.com">gregoire.henry@ocamlpro.com</a>> wrote:<br>
> Hi Anil,<br>
><br>
>   The service only answers to POST request, hence the 404 you hit.<br>
<br>
</span>Where is the source code for the service? I believe it should return<br>
405 in this case with an Allow header listing POST.</blockquote></div><br>This indeed should be the behavior. See the following HTTP response diagram and ocaml-webmachine implementation:</div><div class="gmail_extra"><br></div><div class="gmail_extra">  <a href="https://raw.githubusercontent.com/wiki/webmachine/webmachine/images/http-headers-status-v3.png">https://raw.githubusercontent.com/wiki/webmachine/webmachine/images/http-headers-status-v3.png</a></div><div class="gmail_extra">  <a href="https://github.com/inhabitedtype/ocaml-webmachine/blob/9d63166/lib/webmachine.ml#L453-L464">https://github.com/inhabitedtype/ocaml-webmachine/blob/9d63166/lib/webmachine.ml#L453-L464</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">-Spiros E.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>