When posting a new domain or updating an existing domain with a namespace that is > 16 characters long, the server responds with 400 and no error messages in the body. Expect 422 with standard error message format.
changed response code to 422 and fixed the error message
verified this issue on devenv_1621, when post new domain with long name, got error message: <?xml version="1.0" encoding="UTF-8"?> <response> <status>unprocessable_entity</status> <type nil="true"></type> <version>1.0</version> <data nil="true"></data> <messages> <message> <severity>error</severity> <text> <message>Namespace (bmengdev123456123456123456) is too long. Maximum length is 16 characters</message> <exit-code>106</exit-code> </text> </message> </messages> </response> but when update exist domain with long name, will get nothing. And updating cannot successful.
Verified on devenv_1642, both of create domain and update domain with long name, return correct error message. Mark bug as VERIFIED.