All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nodejs-express-server.services.Service.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
class Service {
  static rejectResponse(error, code = 500) {
    return { error, code };
  }

  static successResponse(payload, code = 200) {
    return { payload, code };
  }
}

module.exports = Service;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy