chrisroberts/dav4rack — pull request #38 by inferiorhumanorgans (2012-04-06 07:09:42+00:00)
Title: get/set_properties: Ensure status objects are not unique.

Because the HTTP status codes are defined as individual classes, make sure that we take the exception's class when shoveling them into a status hash. If we don't, we'll get seemingly duplicate entries, essentially on a per-property basis.

It's the difference between:

```

/carddav/

HTTP/1.1 501 Not Implemented

Sat, 31 Mar 2012 21:59:11 GMT

HTTP/1.1 200 OK

HTTP/1.1 400 Bad Request

```

and

```

/carddav/

HTTP/1.1 501 Not Implemented

Sat, 31 Mar 2012 21:59:11 GMT

HTTP/1.1 200 OK

HTTP/1.1 400 Bad Request

HTTP/1.1 501 Not Implemented

HTTP/1.1 501 Not Implemented

```