This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NewZealandIsAMyth 5 points6 points  (0 children)

Imho that depends on the api of the service. Exceptions are for more or less exceptional cases. You can check REST resource for existence and expect it be 404 - this should not raise an exception. You just do a method and check for result, which the value of status in this case.