Include http status code when reporting errors

Also, add more tests