[
https://issues.apache.org/jira/browse/S2GRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daewon Jeong updated S2GRAPH-47:
--------------------------------
Summary: Invalid HTTP Response code in experimental netty server. (was:
Invalid HTTP Response code in experiment netty server.)
> Invalid HTTP Response code in experimental netty server.
> --------------------------------------------------------
>
> Key: S2GRAPH-47
> URL: https://issues.apache.org/jira/browse/S2GRAPH-47
> Project: S2Graph
> Issue Type: Bug
> Reporter: Daewon Jeong
> Priority: Minor
> Labels: bug
>
> When Exception occured, server must response with status code 500.
> But now, Server response with BadQueryException(status code 400)
> [https://github.com/apache/incubator-s2graph/blob/2b63878cc3850b8308fb123c824870066efbef09/s2rest_netty/src/main/scala/Server.scala#L144]
> ```
> override def exceptionCaught(ctx: ChannelHandlerContext, cause: Throwable) {
> cause.printStackTrace()
> logger.error(s"exception on query.", cause)
> simpleResponse(ctx, BadRequest, byteBufOpt = None,
> channelFutureListenerOpt = CloseOpt)
> }
> ```
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)