feroult / yawp

Kotlin/Java API framework for Google Appengine
http://yawp.io
MIT License
132 stars 20 forks source link

Stop adding extra attributes to user defined HttpException #47

Closed feroult closed 8 years ago

feroult commented 8 years ago

Use as the response body the user defined text/object (json serialized) without any modifications.

Think about add an option for mime-type.

feroult commented 8 years ago

Examples:

throw new HttpException(500, validationObject); throw new HttpException(500, "something wrong", "text/plain"); throw new HttpException(500, "{ 'attr': 'value' }"); // default is text/json

feroult commented 8 years ago

Fixed yawp-1.3.15

Works only with strings and text/json, same as worked before.