 					setKoaResponse ctx, response
 			.fail (reason) ->
 				# on failure
-				logger.error reason
+				handleServerError ctx, reason
 		else
 			promise = sendRequest ctx, route, options
 			.then (response) ->

					routeObj.properties = responseObj.properties
					routeObj.response = responseObj.response
				else
					routeObj.response = response					

				ctx.routes = [] if not ctx.routes
				ctx.routes.push routeObj
			.fail (reason) ->
				# on failure
				logger.error reason

		promises.push promise


				if not defered.promise.isRejected()
					defered.resolve response

	routeReq.on "error", (err) -> defered.reject err

	if ctx.request.method == "POST" || ctx.request.method == "PUT"
		routeReq.write ctx.body
