mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-28 23:37:08 -05:00
63e408f4f2
The octopush legacy API does not return a HTTP error code and instead always returns a HTTP 200. This means that no error it thrown even if something like the parameters are incorrect. Instead the error code is given in the json response data. Therefore we must look at the response data and check for the presence of the "error_code" key in the response data. Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>