Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-50

Client framework throws exception if anything other than OK is returned as a response code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • Beta 5
    • Beta1, Beta2, Beta3, Beta4
    • jaxrs
    • None

      http://sourceforge.net/mailarchive/forum.php?thread_name=1d907adb0806050838o36c91de6q608d490e76c99528%40mail.gmail.com&forum_name=resteasy-developers

      I haven't put a lot of thought into this. I guess have two things:

      1. Allow return of a Response object in the client framework.
      2. An method annotation that says that the return value is a status code @StatusCode or something
      3. Allow returning a Response.Status enum
      4. Throw a WebApplicationExceptoin iif, the response falls into an error code bucket.

            patriot1burke@gmail.com Bill Burke (Inactive)
            patriot1burke@gmail.com Bill Burke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: