sql to http status code