yada

grierson 2019-02-11T14:10:54.001100Z

How do I return a 201 response from a POST request with Yada? Currently returning 200.

dominicm 2019-02-11T14:20:35.001400Z

(assoc (:response ctx) :status 201)

1👍
grierson 2019-02-11T14:27:21.003300Z

@dominicm Thanks. Will I have to set the status response code for every response other than 200 or 404? It's just that in the documentation says "yada attempts to set the correct status code and headers according to the semantics of both the method and mime-type."

malcolmsparks 2019-02-11T15:49:52.005600Z

You could override the POST method semantics with your own version. It's a defmethod.