createError. When hit directly, these show a full html error page, or if hit with accept: application/json, show a json payload with stack info.setResponseStatus and return whatever directly from the api vs passing something to createError.