add proper HTTPStatus implementation

Corrected the pull request according to the discussion at https://github.com/libgdx/libgdx/pull/276