Fork me on GitHub
#re-frame
<
2022-08-08
>
kirill.salykin12:08:36

Hi, please advice, how I can get access to response http status code in success handler? (i am using :http-xhrio) --- https://github.com/day8/re-frame-http-fx/blob/master/src/day8/re_frame/http_fx.cljs#L26 seems like it is not possible… just currious, why it was decided this way?

p-himik12:08:54

If it's a success, you can't get that code at all. If it's an error, there's only an indirect way of getting the code, I think - the result will have a few fields: :last-method, :last-error, :last-error-code.