<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <dl style="line-height: 1.5; margin-left: 2em">
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
      <dd style="margin-left: 8.5em">YUKI Hiroshi &lt;shimo****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2015-04-20 14:55:40 +0900 (Mon, 20 Apr 2015)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139">c444f642fd705fb724fee9987d2b83dfe7002139</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Use constant for HTTP status codes</pre></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
      <dd style="margin-left: 8.5em">
        <ul>
          <li><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#diff-0">lib/adapter/http.js</a></li>
        </ul>
      </dd>
    </dl>

    <div class="diff-section" style="clear: both">
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: lib/adapter/http.js (+6 -4)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L4">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L7">7</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L8">8</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L9">9</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L10">10</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L45">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L46">46</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L47">47</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L48">48</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L49">49</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L52">52</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L63">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L64">64</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L65">65</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L66">66</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L67">67</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L68">68</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L69">69</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L70">70</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L101">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L102">102</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L103">103</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L104">104</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L105">105</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L106">106</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L107">107</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L108">108</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L119">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L120">120</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L121">121</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L122">122</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L123">123</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L124">124</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L125">125</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0L126">126</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R4">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R7">7</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R8">8</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R9">9</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R10">10</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R11">11</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R12">12</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R47">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R48">48</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R49">49</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R50">50</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R52">52</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R53">53</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R54">54</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R65">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R66">66</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R67">67</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R68">68</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R69">69</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R70">70</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R71">71</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R72">72</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R103">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R104">104</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R105">105</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R106">106</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R107">107</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R108">108</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R109">109</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R110">110</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R121">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R122">122</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R123">123</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R124">124</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R125">125</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R126">126</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R127">127</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/express-droonga/commit/c444f642fd705fb724fee9987d2b83dfe7002139#L0R128">128</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -5,6 +5,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">var ConsoleLogger = require('../console-logger').ConsoleLogger;</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var CONNECTION_RETRY_INTERVAL = 1000;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+var ERROR_INTERNAL = 500;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> function createRequestResponseHandler(params) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   params = params || {};</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   var connectionPool = params.connectionPool;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -46,7 +48,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">function createRequestResponseHandler(params) {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">         };</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         if (error.detail)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           errorBody.detail = error.detail;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        response.status(error.code || 500).jsonp(errorBody);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        response.status(error.code || ERROR_INTERNAL).jsonp(errorBody);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         return;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       var connection = connectionPool.get();</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -64,7 +66,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">function createRequestResponseHandler(params) {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">           definition.onRequest(request, wrappedConnection, response);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         } catch(error) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           wrappedConnection.destroy();</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-          response.status(500).jsonp({ error: error.message });</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+          response.status(ERROR_INTERNAL).jsonp({ error: error.message });</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       } else {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         wrappedConnection.emit(commandName, request.query);</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -102,7 +104,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">function createGenericHandler(params) {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">         };</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         if (error.detail)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">           errorBody.detail = error.detail;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        response.status(error.code || 500).jsonp(errorBody);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        response.status(error.code || ERROR_INTERNAL).jsonp(errorBody);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         return;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       var connection = connectionPool.get();</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -120,7 +122,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">function createGenericHandler(params) {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">         definition.onHandle(request, response, wrappedConnection);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       } catch(error) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         wrappedConnection.destroy();</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        response.status(500).jsonp({ error: error.message });</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        response.status(ERROR_INTERNAL).jsonp({ error: error.message });</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     };</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     if (typeof definition.authorize == 'function')</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>