title: Volley - JsonObjectRequest - parseNetworkResponse() is not being called
body: <p>I would like to save response code from volley calls to db, but it seems like parseNetworkResponse() is not being called. Any idea why does it behave like this?</p>
  
  <p>All of my calls are GET, some has code 500 and some has code 200 with json response, so I think it should be called.</p>
  
  <pre><code>private fun createCall(url: String, type: Int, data: JSONObject, callback: Int, request: DbRequestEntity) {
      val jsonRequest = object : JsonObjectRequest(type, url, data,
              Response.Listener { response -&gt;
                  Log.d(tag, "Response $response")
                  try {
                      callback(response, data, callback, request)
                  } catch (e: Exception) {
                      request.responseCode = 999
                      request.responseMessage = e.message
                      db.requestMoodel().update(request)
                      Log.d(tag, "API callback error $e ${e.localizedMessage} ${e.stackTrace}")
                  }
              },
              Response.ErrorListener { error -&gt;
                  Log.d(tag, "API error $error")
                  errorCallback(error, callback)
              }
      ) {
          val tag = "JsonObjectRequest"
  
          override fun getHeaders(): Map&lt;String, String&gt; {
              val headers = HashMap&lt;String, String&gt;()
              headers[ConstantsStorage.API_HEADER_CLIENT_ID] = ConstantsStorage.API_HEADER_CLIENT_ID_VALUE
              headers[ConstantsStorage.API_HEADER_CLIENT_CONTENT_TYPE] = ConstantsStorage.API_HEADER_CLIENT_CONTENT_TYPE_VALUE
              return headers
          }
  
          override fun parseNetworkResponse(response: NetworkResponse): Response&lt;JSONObject&gt; {
              Log.d(tag, "Response code = ${response.statusCode}")     //not getting this message to Logcat
              return super.parseNetworkResponse(response)
          }
      }
      queue.add(jsonRequest)
  }
  </code></pre>