Fix Internal server error in Get Profiles by invalid Params (#6003)

* merged changes

* updated error message in get profiles

* updated error message to print the exact errors

* changed the error status code for get profiles by invalid cdn name

* Added validation to check integer value

* updated DB query to support params value in getprofiles by param

* added tests for get profile by param in all versions

* Fixed merge commits

* updated read profiles tests to support integer param values

* reverted back the method signature of GetProfileByParameterWithHdr

* updated the get profiles validation

* added new client methods for getprofilebyparameterId

* added back the already available comment

* added error checks

* formatted the code

* removed unnecessary review comments
6 files changed