the response code should probably be checked, as it's not correctly triggering with the error passing thing in rust