@@ -37,7 +37,7 @@ generateVanillaJSWith opts req = "\n" <>
3737 <> (if isJust (req ^. reqBody) then " xhr.setRequestHeader(\"Content-Type\",\"application/json\");\n" else "")
3838 <> " xhr.onreadystatechange = function (e) {\n"
3939 <> " if (xhr.readyState == 4) {\n"
40− <> " if (xhr.status == 204) {\n"
40+ <> " if (xhr.status == 204 || xhr.status == 205) {\n"
4141 <> " onSuccess();\n"
4242 <> " } else if (xhr.status >= 200 && xhr.status < 300) {\n"
4343 <> " var value = JSON.parse(xhr.responseText);\n"