optionMarshaller - is None returning a 200 what we really want? #19740
Labels
discuss
Tickets that need some discussion before proceeding. Not decided if it's a good idea.
obsolete – reopen if necessary
Ticket closed as currently obsolete, reopen if discussion still relevant
t:http:server:dsl
t:http
Milestone
Hi @sirthias @jrudolph,
I was reading this blogpost : http://danielasfregola.com/2016/02/07/how-to-build-a-rest-api-with-akka-http/
And realised that when we have an
Option[String]
for example, and wecomplete
with aNone
the defaultEmptyValue[]
mechanism kicks in and the response will be a200
response. Is there some deeper reason behind that? I would have thought a 404 would be more appropriate to model theNone
case.Code in question:
Let me know if there's a story behind the 200 response there or if we simply should fix it, thanks a lot in advance!
// Yup I'm back from vacation, was great (now a bit sick though), so back to hacking full speed now :-)
The text was updated successfully, but these errors were encountered: