The okutil_http_* functions return an Origin specific error code or zero for success.
These functions call Window's WinHttp functions internally. Many WinHttp functions return TRUE or FALSE. When they return FALSE you need to call Window's GetLastError for an error code indicating what is wrong. The okutil_http functions will do this and save the error code. Call okutil_http_error to get the error code for the last error encountered. This function should only be called when an okutil_http function return an error.
DWORD okutil_http_error( )
the error code for the last error encountered
origin.h