wordnik/swagger-codegen — pull request #101 by joeltgf (2013-11-01 01:27:12+00:00)
Title: Change "success" response status code in Java ApiInvoker to all 2xx responses vs. just 200.

Ensure that all bona fide 2xx responses are treated in the same way that "200 OK" is.

Previously, was explicitly checking for response code 200 (ClientResponse.Status.OK).

Now, checks the family of the response to make sure it is successful (Family.SUCCESSFUL). This enables us to POST to resources that return 201 created - without having to handle a checked ApiException.

This is a trivial change BUT it will break any implementations that attempt to catch / parse the ApiException currently thrown when a 201 is returned.