We are writing our first public API.
Now I remember hearing in the past that you shouldn't give users useful error messages, that allows hackers to learn what your data is.
so if the get is
{
policyNumber: '43',
product: 'car insurance'
}
the error message shouldn't give the user enough information to refine their search and carry on hunting for real data.
so not
'sorry this type of insurance doesn't have a policy numbered that'
But my memory is really vague, and my google search skills aren't up-to finding this sort of information out. Or I misunderstood and I am wrong, and this only applies to user name and password.
Please help.
Are there any guidelines in how error messages should be worded for security purposes, what should and what shouldn't be provided to the end user.