I am using hapi-swagger with joi, to define the swagger-ui.
defining specific status codes works OK:
const documentationDetails = { response: {