new middleware "ApiError" for pretty api-problem errors