If a category name is taken, sending a POST request to /categories.json returns an error message:
{"errors":["Category Name has already been taken"]}
You could check for this error message.
If a category name is taken, sending a POST request to /categories.json returns an error message:
{"errors":["Category Name has already been taken"]}
You could check for this error message.