Do not always log exceptions as error when handling OTHER API requests
Do not always log exceptions as error when handling OTHER API requests

Some of the exceptions thrown during the handling of the API requests
might be thrown by the API class itself (for example, when validating
the API key or mandatory parameters), in those cases it should not be
logged an error nor it should be a "500 Internal Server Error" even if
the format is OTHER, it should be logged a warning and returned "400
Bad Request" (like the JSON and HTML formats).

zapbot/zaproxy,zapbot/zaproxy,Ali-Razmjoo/zaproxy,meitar/zaproxy,JordanGS/zaproxy,Harinus/zaproxy,zaproxy/zaproxy,zaproxy/zaproxy,psiinon/zaproxy,kingthorin/zaproxy,zapbot/zaproxy,zapbot/zaproxy,Ali-Razmjoo/zaproxy,psiinon/zaproxy,UjuE/zaproxy,UjuE/zaproxy,lightsey/zaproxy,Harinus/zaproxy,kingthorin/zaproxy,mustafa421/zaproxy,JordanGS/zaproxy,zaproxy/zaproxy,Harinus/zaproxy,rajiv65/zaproxy,zapbot/zaproxy,UjuE/zaproxy,JordanGS/zaproxy,UjuE/zaproxy,thc202/zaproxy,gmaran23/zaproxy,rajiv65/zaproxy,rajiv65/zaproxy,psiinon/zaproxy,Harinus/zaproxy,rajiv65/zaproxy,rajiv65/zaproxy,Ali-Razmjoo/zaproxy,lightsey/zaproxy,meitar/zaproxy,JordanGS/zaproxy,Ali-Razmjoo/zaproxy,thc202/zaproxy,gmaran23/zaproxy,meitar/zaproxy,gmaran23/zaproxy,meitar/zaproxy,mustafa421/zaproxy,Harinus/zaproxy,lightsey/zaproxy,thc202/zaproxy,NVolcz/zaproxy,rajiv65/zaproxy,gsavastano/zaproxy,thc202/zaproxy,gmaran23/zaproxy,zaproxy/zaproxy,gmaran23/zaproxy,lightsey/zaproxy,meitar/zaproxy,gsavastano/zaproxy,kingthorin/zaproxy,gsavastano/zaproxy,meitar/zaproxy,thc202/zaproxy,JordanGS/zaproxy,zaproxy/zaproxy,thc202/zaproxy,NVolcz/zaproxy,thc202/zaproxy,zapbot/zaproxy,meitar/zaproxy,Ali-Razmjoo/zaproxy,gmaran23/zaproxy,kingthorin/zaproxy,gsavastano/zaproxy,JordanGS/zaproxy,Ali-Razmjoo/zaproxy,lightsey/zaproxy,mustafa421/zaproxy,mustafa421/zaproxy,NVolcz/zaproxy,NVolcz/zaproxy,kingthorin/zaproxy,zaproxy/zaproxy,gsavastano/zaproxy,NVolcz/zaproxy,mustafa421/zaproxy,psiinon/zaproxy,UjuE/zaproxy,gsavastano/zaproxy,meitar/zaproxy,Harinus/zaproxy,gmaran23/zaproxy,Harinus/zaproxy,lightsey/zaproxy,kingthorin/zaproxy,NVolcz/zaproxy,rajiv65/zaproxy,mustafa421/zaproxy,NVolcz/zaproxy,psiinon/zaproxy,lightsey/zaproxy,gsavastano/zaproxy,JordanGS/zaproxy,zaproxy/zaproxy,psiinon/zaproxy,kingthorin/zaproxy,zapbot/zaproxy,psiinon/zaproxy,UjuE/zaproxy,mustafa421/zaproxy,UjuE/zaproxy,Ali-Razmjoo/zaproxy