An HTTP 500 is being returned from the /boot endpoint for an agent that already exists. The problem is that in the self.agency.agents call here is empty after server startup. It seems like this list should be populated with all of the known agents. If that is not yet the case then this issue can be marked as a feature request rather than a bug.
Expected Behavior
Return a 400 Bad Request status when I try to re-create the same identifier.
Suggestion
Ideally the return status would be a 409 since 409 Conflict makes more sense than 400 Bad Request due to the fact that a 400 typically means the request is improperly formatted and 409 is a nice way to distinguish improperly formatted requests from identifier conflicts.
Problem - Actual Behavior
An HTTP 500 is being returned from the
/boot
endpoint for an agent that already exists. The problem is that in theself.agency.agents
call here is empty after server startup. It seems like this list should be populated with all of the known agents. If that is not yet the case then this issue can be marked as a feature request rather than a bug.Expected Behavior
Return a 400 Bad Request status when I try to re-create the same identifier.
Suggestion
Ideally the return status would be a 409 since 409 Conflict makes more sense than 400 Bad Request due to the fact that a 400 typically means the request is improperly formatted and 409 is a nice way to distinguish improperly formatted requests from identifier conflicts.
Reproduction steps