UNPKG
schema-registry
Version:
latest (1.18.0)
1.18.0
1.17.0
1.16.0
0.15.0
0.9.3
0.9.2
0.9.1
json & avro schema registry
github.com/nodefluent/schema-registry
nodefluent/schema-registry
schema-registry
/
lib
/
tools
/
sendError.js
10 lines
(8 loc)
•
191 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
const
sendError
= (
res, statusCode, error
) => { res.
status
(statusCode).
json
({
error_code
: statusCode,
message
: error }); };
module
.
exports
= sendError;