Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.
This repository was archived by the owner on May 28, 2018. It is now read-only.

Response status forced to 204 when body empty #334

@glassfishrobot

Description

@glassfishrobot

ResponseBuilder is forcing the response status to 204 (No Content) when the
response body is empty.

Response.ok().build() should generate a response with status 200, but when the
body is empty, the status is set to 204.

Response.ok(object).build() produces a non-empty body, and the response status
is correctly set to 200.

Environment

Operating System: All
Platform: All

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions