This looks like a fix for #7.  I may not have been clear here but Swagger includes a specific type on the API for error/response codes.  Using the notes works, but, the SwaggerUI works better with the operations.errorResponses property.

     {
         resourcePath: "/project",
         apis: [{
          // ...
             operations: [{
                 errorResponses: [{
                     code: 201,
                     reason: "New project created successfully"
                 }, {
                     code: 401,
                     reason: "Bad credentials"
                 }, {
                     code: 422,
                     reason: "Repository name already in use"
                 }]
                 
             }]
         }],
     }