<div dir="ltr">Hi,<div><br></div><div>I recently noticed that we are (IMO) incorrectly returning 200 (OK):</div><div><a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/sender/PushNotificationSenderEndpoint.java#L112-L113">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/sender/PushNotificationSenderEndpoint.java#L112-L113</a></div><div><br></div><div>Since we really do submit an async job here, and its processing may not have been started when we do return the 200 (OK), I&#39;d like to propose a slight change here to instead use 202 (Accepted):</div><div><br></div><div><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.3">http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.3</a></div><div><br></div><div>If the team is OK (ha ha) with this, I will track this in JIRA</div><div><br></div><div>-Matthias<br clear="all"><div><br></div>-- <br><div class="gmail_signature">Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</div></div>