File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
dev/tests/api-functional/testsuite/Magento/Framework/Webapi
lib/internal/Magento/Framework/Webapi Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public static function malformedRequestParamsDataProvider()
84
84
]
85
85
],
86
86
'endpoint ' => 'eav/attribute-sets/list ' ,
87
- 'expectedExceptionCode ' => 500 ,
87
+ 'expectedExceptionCode ' => 400 ,
88
88
],
89
89
'empty_filter_groups_value ' => [
90
90
'requestData ' => [
@@ -118,7 +118,7 @@ public static function malformedRequestParamsDataProvider()
118
118
]
119
119
],
120
120
'endpoint ' => 'cmsBlock/search ' ,
121
- 'expectedExceptionCode ' => 500 ,
121
+ 'expectedExceptionCode ' => 400 ,
122
122
],
123
123
'empty_filter_groups_value2 ' => [
124
124
'requestData ' => [
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ private function getClientErrorHttpCode(\Exception $exception)
179
179
{
180
180
// Check if this is a client error based on the exception type
181
181
if ($ exception instanceof \Zend_Db_Exception
182
+ || $ exception instanceof \Exception
182
183
|| $ exception instanceof \Zend_Db_Adapter_Exception
183
184
|| $ exception instanceof \Zend_Db_Statement_Exception
184
185
|| $ exception instanceof \PDOException
You can’t perform that action at this time.
0 commit comments