<div dir="ltr">Yes, it should be _that_ easy for the 400 > 422 :D, but is that the only important difference I should be aware of, then? I haven't written any real tests, for the time being, to guarantee backward compatibility for dependants...<div>
<br></div><div>In any case, I'm thinking about updating the dependencies in the future (I own one of them and the other one is an internal project, for the time being).</div><div><br></div><div>Thanks for the tip.</div>
<div><br></div><div>Cheers.</div><div><br></div><div>- Paulo F. Oliveira</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 5 August 2014 21:55, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can easily send 422 and return halt instead of returning false if you need to keep that, it'll just be 2 lines instead of 1. :)<br>
<br>
On 08/05/2014 10:33 PM, Paulo F. Oliveira wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, Federico.<br>
<br>
Check this out for the "why" regarding your question:<br>
<a href="https://github.com/ninenines/cowboy/issues/715" target="_blank">https://github.com/ninenines/<u></u>cowboy/issues/715</a><br>
<br>
It's one of the reasons (I haven't detected others yet) stopping me from<br>
moving to 1.0, unfortunately (I have some projects depending on these<br>
status codes already), but as soon as I have some time and look at all<br>
the _major_ differences between 0.9.0 and 1.0 I think I'll make the<br>
move. For the time being, I have found no issues with the REST part of<br>
cowboy (the one I use).<br>
<br>
Thank you, Loïc et all for the effort and for keeping it open source.<br>
<br>
Regards.<br>
<br>
- Paulo F. Oliveira<br>
<br>
<br>
On 5 August 2014 15:18, Federico Carrone <<a href="mailto:federico.carrone@gmail.com" target="_blank">federico.carrone@gmail.com</a><br>
<mailto:<a href="mailto:federico.carrone@gmail.com" target="_blank">federico.carrone@<u></u>gmail.com</a>>> wrote:<br>
<br>
Congratulations Loic. I really love cowboy.<br>
<br>
I got only one question: Why did you change the reply with 400<br>
instead of 422 in cowboy_rest for unprocessable entities?<br>
<br>
Regards,<br>
Federico.<br>
<br>
<br>
<br>
On Tue, Aug 5, 2014 at 10:33 AM, Max Lapshin <<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a><br>
<mailto:<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>><u></u>> wrote:<br>
<br>
Loic, it is very cool!<br>
<br>
Thanks.<br>
<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a> <mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@<u></u>erlang.org</a>><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
<br>
<br>
<br>
<br>
--<br>
<a href="http://federicocarrone.com/" target="_blank">http://federicocarrone.com/</a><br>
<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a> <mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@<u></u>erlang.org</a>><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Extend mailing list<br>
<a href="mailto:Extend@lists.ninenines.eu" target="_blank">Extend@lists.ninenines.eu</a><br>
<a href="https://lists.ninenines.eu/listinfo/extend" target="_blank">https://lists.ninenines.eu/<u></u>listinfo/extend</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Loïc Hoguin<br>
<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a><br>
</font></span></blockquote></div><br></div>