Refactored status codes for Gremlin Server and added javadoc.