Exception Handling

2 views
Skip to first unread message

Jimmy Z

unread,
Dec 16, 2009, 9:55:56 AM12/16/09
to Ruby FS Stack
I've added some basic exceptions to the project that map to non-200
HTTP status codes received from FamilySearch API.

310 UserActionRequired
400 BadRequest
401 Unauthorized
403 Forbidden
404 NotFound
409 Conflict
410 Gone
415 InvalidContentType
430 BadVersion
431 InvalidDeveloperKey
500 ServerError
501 NotImplemented
503 ServiceUnavailable

A new gem has been pushed. I'll be adding some logging capabilities
next.

--
Jimmy
Reply all
Reply to author
Forward
0 new messages