@@ -5,155 +5,155 @@ discard block |
||
| 5 | 5 | class Messages extends Main |
| 6 | 6 | { |
| 7 | 7 | |
| 8 | - /** |
|
| 9 | - * Request succeeded and contains json result |
|
| 10 | - * @param array $data |
|
| 11 | - * @author Shima Payro <[email protected]> |
|
| 12 | - * @since May 2, 2016 9:50:51 AM |
|
| 13 | - * @uses |
|
| 14 | - * @see |
|
| 15 | - */ |
|
| 16 | - public function succeed( $data ) { |
|
| 17 | - |
|
| 18 | - return $this->setStatusCode( 200 ) |
|
| 19 | - ->setStatusText( 'success' ) |
|
| 20 | - ->respondWithResult( $data ); |
|
| 21 | - |
|
| 22 | - } |
|
| 23 | - |
|
| 24 | - /** |
|
| 25 | - * Delete action is succeed |
|
| 26 | - * @author Shima Payro <[email protected]> |
|
| 27 | - * @param String $message |
|
| 28 | - * @since May 2, 2016 9:52:05 AM |
|
| 29 | - * @uses |
|
| 30 | - * @see |
|
| 31 | - */ |
|
| 32 | - public function deleteSucceeded( $message = null ) { |
|
| 33 | - |
|
| 34 | - if ( is_null( $message ) ) |
|
| 35 | - $message = $this->config[ 'success' ][ 'delete' ]; |
|
| 36 | - |
|
| 37 | - return $this->setStatusCode( 200 ) |
|
| 38 | - ->setStatusText( 'success' ) |
|
| 39 | - ->respondWithMessage( $message ); |
|
| 40 | - |
|
| 41 | - } |
|
| 42 | - |
|
| 43 | - /** |
|
| 44 | - * Update action is succeed |
|
| 45 | - * @author Shima Payro <[email protected]> |
|
| 46 | - * @param String $message |
|
| 47 | - * @since May 2, 2016 9:52:52 AM |
|
| 48 | - * @uses |
|
| 49 | - * @see |
|
| 50 | - */ |
|
| 51 | - public function updateSucceeded( $message = null ) { |
|
| 52 | - |
|
| 53 | - if ( is_null( $message ) ) |
|
| 54 | - $message = $this->config[ 'success' ][ 'update' ]; |
|
| 55 | - |
|
| 56 | - return $this->setStatusCode( 200 ) |
|
| 57 | - ->setStatusText( 'success' ) |
|
| 58 | - ->respondWithMessage( $message ); |
|
| 59 | - |
|
| 60 | - } |
|
| 61 | - |
|
| 62 | - /** |
|
| 63 | - * Insert action is succeed |
|
| 64 | - * @author Shima Payro <[email protected]> |
|
| 65 | - * @param String $message |
|
| 66 | - * @since May 2, 2016 9:53:26 AM |
|
| 67 | - * @uses |
|
| 68 | - * @see |
|
| 69 | - */ |
|
| 70 | - public function insertSucceeded( $message = null ) { |
|
| 71 | - |
|
| 72 | - if ( is_null( $message ) ) |
|
| 73 | - $message = $this->config[ 'success' ][ 'insert' ]; |
|
| 74 | - |
|
| 75 | - return $this->setStatusCode( 200 ) |
|
| 76 | - ->setStatusText( 'success' ) |
|
| 77 | - ->respondWithMessage( $message ); |
|
| 78 | - |
|
| 79 | - } |
|
| 80 | - |
|
| 81 | - /** |
|
| 82 | - * Delete action is faild |
|
| 83 | - * @author Shima Payro <[email protected]> |
|
| 84 | - * @param String $message |
|
| 85 | - * @since May 2, 2016 9:53:53 AM |
|
| 86 | - * @uses |
|
| 87 | - * @see |
|
| 88 | - */ |
|
| 89 | - public function deleteFaild( $message = null ) { |
|
| 90 | - |
|
| 91 | - if ( is_null( $message ) ) |
|
| 92 | - $message = $this->config[ 'fail' ][ 'delete' ]; |
|
| 93 | - |
|
| 94 | - return $this->setStatusCode( 447 ) |
|
| 95 | - ->setStatusText( 'fail' ) |
|
| 96 | - ->setErrorCode( 5447 ) |
|
| 97 | - ->respondWithMessage( $message ); |
|
| 98 | - |
|
| 99 | - } |
|
| 100 | - |
|
| 101 | - /** |
|
| 102 | - * Update action is succeed |
|
| 103 | - * @author Shima Payro <[email protected]> |
|
| 104 | - * @param String $message |
|
| 105 | - * @since May 2, 2016 9:54:09 AM |
|
| 106 | - * @uses |
|
| 107 | - * @see |
|
| 108 | - */ |
|
| 109 | - public function updateFaild( $message = null ) { |
|
| 110 | - |
|
| 111 | - if ( is_null( $message ) ) |
|
| 112 | - $message = $this->config[ 'fail' ][ 'update' ]; |
|
| 113 | - |
|
| 114 | - return $this->setStatusCode( 449 ) |
|
| 115 | - ->setStatusText( 'fail' ) |
|
| 116 | - ->setErrorCode( 5449 ) |
|
| 117 | - ->respondWithMessage( $message ); |
|
| 118 | - |
|
| 119 | - } |
|
| 120 | - |
|
| 121 | - /** |
|
| 122 | - * Insert action is faild |
|
| 123 | - * @author Shima Payro <[email protected]> |
|
| 124 | - * @param String $message |
|
| 125 | - * @since May 2, 2016 9:54:27 AM |
|
| 126 | - * @uses |
|
| 127 | - * @see |
|
| 128 | - */ |
|
| 129 | - public function insertFaild( $message = null ) { |
|
| 130 | - |
|
| 131 | - if ( is_null( $message ) ) |
|
| 132 | - $message = $this->config[ 'fail' ][ 'insert' ]; |
|
| 133 | - |
|
| 134 | - return $this->setStatusCode( 448 ) |
|
| 135 | - ->setStatusText( 'fail' ) |
|
| 136 | - ->setErrorCode( 5448 ) |
|
| 137 | - ->respondWithMessage( $message ); |
|
| 138 | - |
|
| 139 | - } |
|
| 140 | - |
|
| 141 | - /** |
|
| 142 | - * Database connection is refused |
|
| 143 | - * @author Shima Payro <[email protected]> |
|
| 144 | - * @param String $message |
|
| 145 | - * @since May 2, 2016 9:54:45 AM |
|
| 146 | - * @uses |
|
| 147 | - * @see |
|
| 148 | - */ |
|
| 149 | - public function connectionRefused() { |
|
| 150 | - |
|
| 151 | - return $this->setStatusCode( 445 ) |
|
| 152 | - ->setStatusText( 'fail' ) |
|
| 153 | - ->setErrorCode( 5445 ) |
|
| 154 | - ->respondWithMessage(); |
|
| 155 | - |
|
| 156 | - } |
|
| 8 | + /** |
|
| 9 | + * Request succeeded and contains json result |
|
| 10 | + * @param array $data |
|
| 11 | + * @author Shima Payro <[email protected]> |
|
| 12 | + * @since May 2, 2016 9:50:51 AM |
|
| 13 | + * @uses |
|
| 14 | + * @see |
|
| 15 | + */ |
|
| 16 | + public function succeed( $data ) { |
|
| 17 | + |
|
| 18 | + return $this->setStatusCode( 200 ) |
|
| 19 | + ->setStatusText( 'success' ) |
|
| 20 | + ->respondWithResult( $data ); |
|
| 21 | + |
|
| 22 | + } |
|
| 23 | + |
|
| 24 | + /** |
|
| 25 | + * Delete action is succeed |
|
| 26 | + * @author Shima Payro <[email protected]> |
|
| 27 | + * @param String $message |
|
| 28 | + * @since May 2, 2016 9:52:05 AM |
|
| 29 | + * @uses |
|
| 30 | + * @see |
|
| 31 | + */ |
|
| 32 | + public function deleteSucceeded( $message = null ) { |
|
| 33 | + |
|
| 34 | + if ( is_null( $message ) ) |
|
| 35 | + $message = $this->config[ 'success' ][ 'delete' ]; |
|
| 36 | + |
|
| 37 | + return $this->setStatusCode( 200 ) |
|
| 38 | + ->setStatusText( 'success' ) |
|
| 39 | + ->respondWithMessage( $message ); |
|
| 40 | + |
|
| 41 | + } |
|
| 42 | + |
|
| 43 | + /** |
|
| 44 | + * Update action is succeed |
|
| 45 | + * @author Shima Payro <[email protected]> |
|
| 46 | + * @param String $message |
|
| 47 | + * @since May 2, 2016 9:52:52 AM |
|
| 48 | + * @uses |
|
| 49 | + * @see |
|
| 50 | + */ |
|
| 51 | + public function updateSucceeded( $message = null ) { |
|
| 52 | + |
|
| 53 | + if ( is_null( $message ) ) |
|
| 54 | + $message = $this->config[ 'success' ][ 'update' ]; |
|
| 55 | + |
|
| 56 | + return $this->setStatusCode( 200 ) |
|
| 57 | + ->setStatusText( 'success' ) |
|
| 58 | + ->respondWithMessage( $message ); |
|
| 59 | + |
|
| 60 | + } |
|
| 61 | + |
|
| 62 | + /** |
|
| 63 | + * Insert action is succeed |
|
| 64 | + * @author Shima Payro <[email protected]> |
|
| 65 | + * @param String $message |
|
| 66 | + * @since May 2, 2016 9:53:26 AM |
|
| 67 | + * @uses |
|
| 68 | + * @see |
|
| 69 | + */ |
|
| 70 | + public function insertSucceeded( $message = null ) { |
|
| 71 | + |
|
| 72 | + if ( is_null( $message ) ) |
|
| 73 | + $message = $this->config[ 'success' ][ 'insert' ]; |
|
| 74 | + |
|
| 75 | + return $this->setStatusCode( 200 ) |
|
| 76 | + ->setStatusText( 'success' ) |
|
| 77 | + ->respondWithMessage( $message ); |
|
| 78 | + |
|
| 79 | + } |
|
| 80 | + |
|
| 81 | + /** |
|
| 82 | + * Delete action is faild |
|
| 83 | + * @author Shima Payro <[email protected]> |
|
| 84 | + * @param String $message |
|
| 85 | + * @since May 2, 2016 9:53:53 AM |
|
| 86 | + * @uses |
|
| 87 | + * @see |
|
| 88 | + */ |
|
| 89 | + public function deleteFaild( $message = null ) { |
|
| 90 | + |
|
| 91 | + if ( is_null( $message ) ) |
|
| 92 | + $message = $this->config[ 'fail' ][ 'delete' ]; |
|
| 93 | + |
|
| 94 | + return $this->setStatusCode( 447 ) |
|
| 95 | + ->setStatusText( 'fail' ) |
|
| 96 | + ->setErrorCode( 5447 ) |
|
| 97 | + ->respondWithMessage( $message ); |
|
| 98 | + |
|
| 99 | + } |
|
| 100 | + |
|
| 101 | + /** |
|
| 102 | + * Update action is succeed |
|
| 103 | + * @author Shima Payro <[email protected]> |
|
| 104 | + * @param String $message |
|
| 105 | + * @since May 2, 2016 9:54:09 AM |
|
| 106 | + * @uses |
|
| 107 | + * @see |
|
| 108 | + */ |
|
| 109 | + public function updateFaild( $message = null ) { |
|
| 110 | + |
|
| 111 | + if ( is_null( $message ) ) |
|
| 112 | + $message = $this->config[ 'fail' ][ 'update' ]; |
|
| 113 | + |
|
| 114 | + return $this->setStatusCode( 449 ) |
|
| 115 | + ->setStatusText( 'fail' ) |
|
| 116 | + ->setErrorCode( 5449 ) |
|
| 117 | + ->respondWithMessage( $message ); |
|
| 118 | + |
|
| 119 | + } |
|
| 120 | + |
|
| 121 | + /** |
|
| 122 | + * Insert action is faild |
|
| 123 | + * @author Shima Payro <[email protected]> |
|
| 124 | + * @param String $message |
|
| 125 | + * @since May 2, 2016 9:54:27 AM |
|
| 126 | + * @uses |
|
| 127 | + * @see |
|
| 128 | + */ |
|
| 129 | + public function insertFaild( $message = null ) { |
|
| 130 | + |
|
| 131 | + if ( is_null( $message ) ) |
|
| 132 | + $message = $this->config[ 'fail' ][ 'insert' ]; |
|
| 133 | + |
|
| 134 | + return $this->setStatusCode( 448 ) |
|
| 135 | + ->setStatusText( 'fail' ) |
|
| 136 | + ->setErrorCode( 5448 ) |
|
| 137 | + ->respondWithMessage( $message ); |
|
| 138 | + |
|
| 139 | + } |
|
| 140 | + |
|
| 141 | + /** |
|
| 142 | + * Database connection is refused |
|
| 143 | + * @author Shima Payro <[email protected]> |
|
| 144 | + * @param String $message |
|
| 145 | + * @since May 2, 2016 9:54:45 AM |
|
| 146 | + * @uses |
|
| 147 | + * @see |
|
| 148 | + */ |
|
| 149 | + public function connectionRefused() { |
|
| 150 | + |
|
| 151 | + return $this->setStatusCode( 445 ) |
|
| 152 | + ->setStatusText( 'fail' ) |
|
| 153 | + ->setErrorCode( 5445 ) |
|
| 154 | + ->respondWithMessage(); |
|
| 155 | + |
|
| 156 | + } |
|
| 157 | 157 | |
| 158 | 158 | /** |
| 159 | 159 | * Redis connection is refused |
@@ -167,123 +167,123 @@ discard block |
||
| 167 | 167 | ->setStatusText( 'fail' ) |
| 168 | 168 | ->setErrorCode( 5445 ) |
| 169 | 169 | ->respondWithMessage(); |
| 170 | - } |
|
| 171 | - |
|
| 172 | - /** |
|
| 173 | - * page requested is not found |
|
| 174 | - * @author Shima Payro <[email protected]> |
|
| 175 | - * @param String $message |
|
| 176 | - * @since May 2, 2016 9:55:20 AM |
|
| 177 | - * @uses |
|
| 178 | - * @see |
|
| 179 | - */ |
|
| 180 | - public function notFound() { |
|
| 181 | - |
|
| 182 | - return $this->setStatusCode( 404 ) |
|
| 183 | - ->setStatusText( 'fail' ) |
|
| 184 | - ->setErrorCode( 5404 ) |
|
| 185 | - ->respondWithMessage(); |
|
| 186 | - |
|
| 187 | - } |
|
| 188 | - |
|
| 189 | - /** |
|
| 190 | - * Wrong parameters are entered |
|
| 191 | - * @author Shima Payro <[email protected]> |
|
| 192 | - * @param String $message |
|
| 193 | - * @since May 2, 2016 9:55:20 AM |
|
| 194 | - * @uses |
|
| 195 | - * @see |
|
| 196 | - */ |
|
| 197 | - public function wrongParameters() { |
|
| 198 | - |
|
| 199 | - return $this->setStatusCode( 406 ) |
|
| 200 | - ->setStatusText( 'fail' ) |
|
| 201 | - ->setErrorCode( 5406 ) |
|
| 202 | - ->respondWithMessage(); |
|
| 203 | - |
|
| 204 | - } |
|
| 205 | - |
|
| 206 | - /** |
|
| 207 | - * Method is not allowed |
|
| 208 | - * @author Shima Payro <[email protected]> |
|
| 209 | - * @param String $message |
|
| 210 | - * @since May 2, 2016 9:55:20 AM |
|
| 211 | - * @uses |
|
| 212 | - * @see |
|
| 213 | - */ |
|
| 214 | - public function methodNotAllowed() { |
|
| 215 | - |
|
| 216 | - return $this->setStatusCode( 405 ) |
|
| 217 | - ->setStatusText( 'fail' ) |
|
| 218 | - ->setErrorCode( 5405 ) |
|
| 219 | - ->respondWithMessage(); |
|
| 220 | - |
|
| 221 | - } |
|
| 222 | - |
|
| 223 | - /** |
|
| 224 | - * There ara validation errors |
|
| 225 | - * @author Shima Payro <[email protected]> |
|
| 226 | - * @param $data array |
|
| 227 | - * @since May 2, 2016 9:55:20 AM |
|
| 228 | - * @uses |
|
| 229 | - * @see |
|
| 230 | - */ |
|
| 231 | - public function validationErrors( $message = null ) { |
|
| 232 | - |
|
| 233 | - return $this->setStatusCode( 420 ) |
|
| 234 | - ->setStatusText( 'fail' ) |
|
| 235 | - ->setErrorCode( 5420 ) |
|
| 236 | - ->respondWithResult( $message ); |
|
| 237 | - |
|
| 238 | - } |
|
| 239 | - |
|
| 240 | - /** |
|
| 241 | - * The request field is not found |
|
| 242 | - * @author Shima Payro <[email protected]> |
|
| 243 | - * @param String $message |
|
| 244 | - * @since May 2, 2016 9:55:20 AM |
|
| 245 | - * @uses |
|
| 246 | - * @see |
|
| 247 | - */ |
|
| 248 | - public function requestFieldNotFound() { |
|
| 249 | - |
|
| 250 | - return $this->setStatusCode( 446 ) |
|
| 251 | - ->setStatusText( 'fail' ) |
|
| 252 | - ->setErrorCode( 1001 ) |
|
| 253 | - ->respondWithMessage(); |
|
| 254 | - |
|
| 255 | - } |
|
| 256 | - |
|
| 257 | - /** |
|
| 258 | - * The request field is doublicated |
|
| 259 | - * @author Mehdi Hosseini <[email protected]> |
|
| 260 | - * @since August 24, 2016 |
|
| 261 | - * @return mixed |
|
| 262 | - */ |
|
| 263 | - public function requestFieldDuplicated() { |
|
| 264 | - |
|
| 265 | - return $this->setStatusCode( 400 ) |
|
| 266 | - ->setStatusText( 'fail' ) |
|
| 267 | - ->SetErrorCode(1004) |
|
| 268 | - ->respondWithMessage(); |
|
| 269 | - |
|
| 270 | - } |
|
| 271 | - |
|
| 272 | - /** |
|
| 273 | - * Custom error message according to error config file |
|
| 274 | - * @author Mehdi Hosseini <[email protected]> |
|
| 275 | - * @since August 24, 2016 |
|
| 276 | - * @param $code integer |
|
| 277 | - * @return mixed |
|
| 278 | - */ |
|
| 279 | - public function error( $code ) { |
|
| 280 | - |
|
| 281 | - return $this->setStatusCode( 400 ) |
|
| 282 | - ->setStatusText( 'fail' ) |
|
| 283 | - ->setErrorCode( $code ) |
|
| 284 | - ->respondWithMessage(); |
|
| 285 | - |
|
| 286 | - } |
|
| 170 | + } |
|
| 171 | + |
|
| 172 | + /** |
|
| 173 | + * page requested is not found |
|
| 174 | + * @author Shima Payro <[email protected]> |
|
| 175 | + * @param String $message |
|
| 176 | + * @since May 2, 2016 9:55:20 AM |
|
| 177 | + * @uses |
|
| 178 | + * @see |
|
| 179 | + */ |
|
| 180 | + public function notFound() { |
|
| 181 | + |
|
| 182 | + return $this->setStatusCode( 404 ) |
|
| 183 | + ->setStatusText( 'fail' ) |
|
| 184 | + ->setErrorCode( 5404 ) |
|
| 185 | + ->respondWithMessage(); |
|
| 186 | + |
|
| 187 | + } |
|
| 188 | + |
|
| 189 | + /** |
|
| 190 | + * Wrong parameters are entered |
|
| 191 | + * @author Shima Payro <[email protected]> |
|
| 192 | + * @param String $message |
|
| 193 | + * @since May 2, 2016 9:55:20 AM |
|
| 194 | + * @uses |
|
| 195 | + * @see |
|
| 196 | + */ |
|
| 197 | + public function wrongParameters() { |
|
| 198 | + |
|
| 199 | + return $this->setStatusCode( 406 ) |
|
| 200 | + ->setStatusText( 'fail' ) |
|
| 201 | + ->setErrorCode( 5406 ) |
|
| 202 | + ->respondWithMessage(); |
|
| 203 | + |
|
| 204 | + } |
|
| 205 | + |
|
| 206 | + /** |
|
| 207 | + * Method is not allowed |
|
| 208 | + * @author Shima Payro <[email protected]> |
|
| 209 | + * @param String $message |
|
| 210 | + * @since May 2, 2016 9:55:20 AM |
|
| 211 | + * @uses |
|
| 212 | + * @see |
|
| 213 | + */ |
|
| 214 | + public function methodNotAllowed() { |
|
| 215 | + |
|
| 216 | + return $this->setStatusCode( 405 ) |
|
| 217 | + ->setStatusText( 'fail' ) |
|
| 218 | + ->setErrorCode( 5405 ) |
|
| 219 | + ->respondWithMessage(); |
|
| 220 | + |
|
| 221 | + } |
|
| 222 | + |
|
| 223 | + /** |
|
| 224 | + * There ara validation errors |
|
| 225 | + * @author Shima Payro <[email protected]> |
|
| 226 | + * @param $data array |
|
| 227 | + * @since May 2, 2016 9:55:20 AM |
|
| 228 | + * @uses |
|
| 229 | + * @see |
|
| 230 | + */ |
|
| 231 | + public function validationErrors( $message = null ) { |
|
| 232 | + |
|
| 233 | + return $this->setStatusCode( 420 ) |
|
| 234 | + ->setStatusText( 'fail' ) |
|
| 235 | + ->setErrorCode( 5420 ) |
|
| 236 | + ->respondWithResult( $message ); |
|
| 237 | + |
|
| 238 | + } |
|
| 239 | + |
|
| 240 | + /** |
|
| 241 | + * The request field is not found |
|
| 242 | + * @author Shima Payro <[email protected]> |
|
| 243 | + * @param String $message |
|
| 244 | + * @since May 2, 2016 9:55:20 AM |
|
| 245 | + * @uses |
|
| 246 | + * @see |
|
| 247 | + */ |
|
| 248 | + public function requestFieldNotFound() { |
|
| 249 | + |
|
| 250 | + return $this->setStatusCode( 446 ) |
|
| 251 | + ->setStatusText( 'fail' ) |
|
| 252 | + ->setErrorCode( 1001 ) |
|
| 253 | + ->respondWithMessage(); |
|
| 254 | + |
|
| 255 | + } |
|
| 256 | + |
|
| 257 | + /** |
|
| 258 | + * The request field is doublicated |
|
| 259 | + * @author Mehdi Hosseini <[email protected]> |
|
| 260 | + * @since August 24, 2016 |
|
| 261 | + * @return mixed |
|
| 262 | + */ |
|
| 263 | + public function requestFieldDuplicated() { |
|
| 264 | + |
|
| 265 | + return $this->setStatusCode( 400 ) |
|
| 266 | + ->setStatusText( 'fail' ) |
|
| 267 | + ->SetErrorCode(1004) |
|
| 268 | + ->respondWithMessage(); |
|
| 269 | + |
|
| 270 | + } |
|
| 271 | + |
|
| 272 | + /** |
|
| 273 | + * Custom error message according to error config file |
|
| 274 | + * @author Mehdi Hosseini <[email protected]> |
|
| 275 | + * @since August 24, 2016 |
|
| 276 | + * @param $code integer |
|
| 277 | + * @return mixed |
|
| 278 | + */ |
|
| 279 | + public function error( $code ) { |
|
| 280 | + |
|
| 281 | + return $this->setStatusCode( 400 ) |
|
| 282 | + ->setStatusText( 'fail' ) |
|
| 283 | + ->setErrorCode( $code ) |
|
| 284 | + ->respondWithMessage(); |
|
| 285 | + |
|
| 286 | + } |
|
| 287 | 287 | |
| 288 | 288 | |
| 289 | 289 | } |
@@ -2,195 +2,195 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - 'success' => [ |
|
| 6 | - |
|
| 7 | - 'insert' => 'درخواست با موفقیت درج شده است.', |
|
| 8 | - |
|
| 9 | - 'delete' => 'درخواست با موفقیت پاک شده است.', |
|
| 10 | - |
|
| 11 | - 'update' => 'درخواست با موفقیت ویرایش شده است.' |
|
| 12 | - |
|
| 13 | - ], |
|
| 14 | - |
|
| 15 | - 'fail' => [ |
|
| 16 | - |
|
| 17 | - 'insert' => 'درخواست با موفقیت درج نشد.', |
|
| 18 | - |
|
| 19 | - 'delete' => 'درخواست با موفقیت پاک نشد.', |
|
| 20 | - |
|
| 21 | - 'update' => 'درخواست با موفقیت ویرایش نشد.' |
|
| 22 | - |
|
| 23 | - ], |
|
| 24 | - |
|
| 25 | - 1001 => [ |
|
| 26 | - 'message' => 'درخواست مورد نظر پیدا نشده است.', |
|
| 27 | - 'type' => 'error' |
|
| 28 | - ], |
|
| 29 | - |
|
| 30 | - 1002 => [ |
|
| 31 | - 'message' => 'کاربر مورد نظر موجود نیست.', |
|
| 32 | - 'type' => 'error' |
|
| 33 | - ], |
|
| 34 | - |
|
| 35 | - 1003 => [ |
|
| 36 | - 'message' => 'نوع کاربری وارد نشده است.', |
|
| 37 | - 'type' => 'error' |
|
| 38 | - ], |
|
| 39 | - |
|
| 40 | - 1004 => [ |
|
| 41 | - 'message' => 'ورودی مورد نظر تکراری است.', |
|
| 42 | - 'type' => 'error' |
|
| 43 | - ], |
|
| 44 | - |
|
| 45 | - 1005 => [ |
|
| 46 | - 'message' => 'نقش کاربر مورد نظر تکراری است.', |
|
| 47 | - 'type' => 'error' |
|
| 48 | - ], |
|
| 49 | - |
|
| 50 | - 3001 => [ |
|
| 51 | - 'message' => 'شما به سیستم وارد نشده اید.', |
|
| 52 | - 'type' => 'error', |
|
| 53 | - 'cat' => 'auth', |
|
| 54 | - 'short' => 'not-logged-on' |
|
| 55 | - ], |
|
| 56 | - |
|
| 57 | - 3002 => [ |
|
| 58 | - 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 59 | - 'type' => 'error', |
|
| 60 | - 'cat' => 'auth' |
|
| 61 | - ], |
|
| 62 | - |
|
| 63 | - 3003 =>[ |
|
| 64 | - 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 65 | - 'type' => 'error', |
|
| 66 | - 'cat' => 'auth' |
|
| 67 | - ], |
|
| 68 | - |
|
| 69 | - 3004 => [ |
|
| 70 | - 'message' => 'هیچ آژانسی به نشان شناسایی دسترسی ندارد.', |
|
| 71 | - 'type' => 'error', |
|
| 72 | - 'cat' => 'auth' |
|
| 73 | - ], |
|
| 74 | - |
|
| 75 | - 3005 => [ |
|
| 76 | - 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 77 | - 'type' => 'error', |
|
| 78 | - 'cat' => 'auth' |
|
| 79 | - ], |
|
| 80 | - |
|
| 81 | - 3006 => [ |
|
| 82 | - 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 83 | - 'type' => 'error', |
|
| 84 | - 'cat' => 'auth' |
|
| 85 | - ], |
|
| 86 | - |
|
| 87 | - 3007 => [ |
|
| 88 | - 'message' => 'نشان شناسایی شما نمایش داده نمیشود.', |
|
| 89 | - 'type' => 'error', |
|
| 90 | - 'cat' => 'auth' |
|
| 91 | - ], |
|
| 92 | - |
|
| 93 | - 3008 => [ |
|
| 94 | - 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 95 | - 'type' => 'error', |
|
| 96 | - 'cat' => 'auth' |
|
| 97 | - ], |
|
| 98 | - |
|
| 99 | - 3009 => [ |
|
| 100 | - 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 101 | - 'type' => 'error', |
|
| 102 | - 'cat' => 'auth' |
|
| 103 | - ], |
|
| 104 | - |
|
| 105 | - 3010 => [ |
|
| 106 | - 'message' => 'زمان استفاده از نشان شناسایی شما گذشته است.', |
|
| 107 | - 'type' => 'error', |
|
| 108 | - 'cat' => 'auth' |
|
| 109 | - ], |
|
| 110 | - |
|
| 111 | - 3011 => [ |
|
| 112 | - 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 113 | - 'type' => 'error', |
|
| 114 | - 'cat' => 'auth' |
|
| 115 | - ], |
|
| 116 | - |
|
| 117 | - 3012 => [ |
|
| 118 | - 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 119 | - 'type' => 'error', |
|
| 120 | - 'cat' => 'auth' |
|
| 121 | - ], |
|
| 122 | - |
|
| 123 | - 3013 => [ |
|
| 124 | - 'message' => 'Payload معتبر نیست.', |
|
| 125 | - 'type' => 'error', |
|
| 126 | - 'cat' => 'auth' |
|
| 127 | - ], |
|
| 128 | - |
|
| 129 | - 3014 => [ |
|
| 130 | - 'message' => 'Claim معتبر نیست.', |
|
| 131 | - 'type' => 'error', |
|
| 132 | - 'cat' => 'auth' |
|
| 133 | - ], |
|
| 134 | - |
|
| 135 | - 3015 => [ |
|
| 136 | - 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 137 | - 'type' => 'error', |
|
| 138 | - 'cat' => 'auth' |
|
| 139 | - ], |
|
| 140 | - |
|
| 141 | - 5401 => [ |
|
| 142 | - 'message' => 'شناسایی کاربر نامعتبر است.', |
|
| 143 | - 'type' => 'error' |
|
| 144 | - ], |
|
| 145 | - |
|
| 146 | - 5404 => [ |
|
| 147 | - 'message' => 'صفحه درخواست شده پیدا نمیشود.', |
|
| 148 | - 'type' => 'error' |
|
| 149 | - ], |
|
| 150 | - |
|
| 151 | - 5405 => [ |
|
| 152 | - 'message' => 'شما به درخواستی که داده اید دسترسی ندارید.', |
|
| 153 | - 'type' => 'error' |
|
| 154 | - ], |
|
| 155 | - |
|
| 156 | - 5406 => [ |
|
| 157 | - 'message' => 'پارامترهایی که شما وارد کرده اید نا معتبر است.', |
|
| 158 | - 'type' => 'error' |
|
| 159 | - ], |
|
| 160 | - |
|
| 161 | - 5420 => [ |
|
| 162 | - 'message' => 'خطای اعتبار سنجی.', |
|
| 163 | - 'type' => 'error' |
|
| 164 | - ], |
|
| 165 | - |
|
| 166 | - 5422 => [ |
|
| 167 | - 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 168 | - 'type' => 'error' |
|
| 169 | - ], |
|
| 170 | - |
|
| 171 | - 5445 => [ |
|
| 172 | - 'message' => 'ارتباط با پایگاه داده مشکل دارد.', |
|
| 173 | - 'type' => 'error' |
|
| 174 | - ], |
|
| 5 | + 'success' => [ |
|
| 6 | + |
|
| 7 | + 'insert' => 'درخواست با موفقیت درج شده است.', |
|
| 8 | + |
|
| 9 | + 'delete' => 'درخواست با موفقیت پاک شده است.', |
|
| 10 | + |
|
| 11 | + 'update' => 'درخواست با موفقیت ویرایش شده است.' |
|
| 12 | + |
|
| 13 | + ], |
|
| 14 | + |
|
| 15 | + 'fail' => [ |
|
| 16 | + |
|
| 17 | + 'insert' => 'درخواست با موفقیت درج نشد.', |
|
| 18 | + |
|
| 19 | + 'delete' => 'درخواست با موفقیت پاک نشد.', |
|
| 20 | + |
|
| 21 | + 'update' => 'درخواست با موفقیت ویرایش نشد.' |
|
| 22 | + |
|
| 23 | + ], |
|
| 24 | + |
|
| 25 | + 1001 => [ |
|
| 26 | + 'message' => 'درخواست مورد نظر پیدا نشده است.', |
|
| 27 | + 'type' => 'error' |
|
| 28 | + ], |
|
| 29 | + |
|
| 30 | + 1002 => [ |
|
| 31 | + 'message' => 'کاربر مورد نظر موجود نیست.', |
|
| 32 | + 'type' => 'error' |
|
| 33 | + ], |
|
| 34 | + |
|
| 35 | + 1003 => [ |
|
| 36 | + 'message' => 'نوع کاربری وارد نشده است.', |
|
| 37 | + 'type' => 'error' |
|
| 38 | + ], |
|
| 39 | + |
|
| 40 | + 1004 => [ |
|
| 41 | + 'message' => 'ورودی مورد نظر تکراری است.', |
|
| 42 | + 'type' => 'error' |
|
| 43 | + ], |
|
| 44 | + |
|
| 45 | + 1005 => [ |
|
| 46 | + 'message' => 'نقش کاربر مورد نظر تکراری است.', |
|
| 47 | + 'type' => 'error' |
|
| 48 | + ], |
|
| 49 | + |
|
| 50 | + 3001 => [ |
|
| 51 | + 'message' => 'شما به سیستم وارد نشده اید.', |
|
| 52 | + 'type' => 'error', |
|
| 53 | + 'cat' => 'auth', |
|
| 54 | + 'short' => 'not-logged-on' |
|
| 55 | + ], |
|
| 56 | + |
|
| 57 | + 3002 => [ |
|
| 58 | + 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 59 | + 'type' => 'error', |
|
| 60 | + 'cat' => 'auth' |
|
| 61 | + ], |
|
| 62 | + |
|
| 63 | + 3003 =>[ |
|
| 64 | + 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 65 | + 'type' => 'error', |
|
| 66 | + 'cat' => 'auth' |
|
| 67 | + ], |
|
| 68 | + |
|
| 69 | + 3004 => [ |
|
| 70 | + 'message' => 'هیچ آژانسی به نشان شناسایی دسترسی ندارد.', |
|
| 71 | + 'type' => 'error', |
|
| 72 | + 'cat' => 'auth' |
|
| 73 | + ], |
|
| 74 | + |
|
| 75 | + 3005 => [ |
|
| 76 | + 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 77 | + 'type' => 'error', |
|
| 78 | + 'cat' => 'auth' |
|
| 79 | + ], |
|
| 80 | + |
|
| 81 | + 3006 => [ |
|
| 82 | + 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 83 | + 'type' => 'error', |
|
| 84 | + 'cat' => 'auth' |
|
| 85 | + ], |
|
| 86 | + |
|
| 87 | + 3007 => [ |
|
| 88 | + 'message' => 'نشان شناسایی شما نمایش داده نمیشود.', |
|
| 89 | + 'type' => 'error', |
|
| 90 | + 'cat' => 'auth' |
|
| 91 | + ], |
|
| 92 | + |
|
| 93 | + 3008 => [ |
|
| 94 | + 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 95 | + 'type' => 'error', |
|
| 96 | + 'cat' => 'auth' |
|
| 97 | + ], |
|
| 98 | + |
|
| 99 | + 3009 => [ |
|
| 100 | + 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 101 | + 'type' => 'error', |
|
| 102 | + 'cat' => 'auth' |
|
| 103 | + ], |
|
| 104 | + |
|
| 105 | + 3010 => [ |
|
| 106 | + 'message' => 'زمان استفاده از نشان شناسایی شما گذشته است.', |
|
| 107 | + 'type' => 'error', |
|
| 108 | + 'cat' => 'auth' |
|
| 109 | + ], |
|
| 110 | + |
|
| 111 | + 3011 => [ |
|
| 112 | + 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 113 | + 'type' => 'error', |
|
| 114 | + 'cat' => 'auth' |
|
| 115 | + ], |
|
| 116 | + |
|
| 117 | + 3012 => [ |
|
| 118 | + 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 119 | + 'type' => 'error', |
|
| 120 | + 'cat' => 'auth' |
|
| 121 | + ], |
|
| 122 | + |
|
| 123 | + 3013 => [ |
|
| 124 | + 'message' => 'Payload معتبر نیست.', |
|
| 125 | + 'type' => 'error', |
|
| 126 | + 'cat' => 'auth' |
|
| 127 | + ], |
|
| 128 | + |
|
| 129 | + 3014 => [ |
|
| 130 | + 'message' => 'Claim معتبر نیست.', |
|
| 131 | + 'type' => 'error', |
|
| 132 | + 'cat' => 'auth' |
|
| 133 | + ], |
|
| 134 | + |
|
| 135 | + 3015 => [ |
|
| 136 | + 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 137 | + 'type' => 'error', |
|
| 138 | + 'cat' => 'auth' |
|
| 139 | + ], |
|
| 140 | + |
|
| 141 | + 5401 => [ |
|
| 142 | + 'message' => 'شناسایی کاربر نامعتبر است.', |
|
| 143 | + 'type' => 'error' |
|
| 144 | + ], |
|
| 145 | + |
|
| 146 | + 5404 => [ |
|
| 147 | + 'message' => 'صفحه درخواست شده پیدا نمیشود.', |
|
| 148 | + 'type' => 'error' |
|
| 149 | + ], |
|
| 150 | + |
|
| 151 | + 5405 => [ |
|
| 152 | + 'message' => 'شما به درخواستی که داده اید دسترسی ندارید.', |
|
| 153 | + 'type' => 'error' |
|
| 154 | + ], |
|
| 155 | + |
|
| 156 | + 5406 => [ |
|
| 157 | + 'message' => 'پارامترهایی که شما وارد کرده اید نا معتبر است.', |
|
| 158 | + 'type' => 'error' |
|
| 159 | + ], |
|
| 160 | + |
|
| 161 | + 5420 => [ |
|
| 162 | + 'message' => 'خطای اعتبار سنجی.', |
|
| 163 | + 'type' => 'error' |
|
| 164 | + ], |
|
| 165 | + |
|
| 166 | + 5422 => [ |
|
| 167 | + 'message' => 'نشان شناسایی شما نامعتبر است.', |
|
| 168 | + 'type' => 'error' |
|
| 169 | + ], |
|
| 170 | + |
|
| 171 | + 5445 => [ |
|
| 172 | + 'message' => 'ارتباط با پایگاه داده مشکل دارد.', |
|
| 173 | + 'type' => 'error' |
|
| 174 | + ], |
|
| 175 | 175 | |
| 176 | 176 | 5446 => [ |
| 177 | 177 | 'message' => 'ارتباط با پایگاه داده ردیس مشکل دارد.', |
| 178 | 178 | 'type' => 'error' |
| 179 | 179 | ], |
| 180 | 180 | |
| 181 | - 5448 => [ |
|
| 182 | - 'message' => 'عملیات درج درست اجرا نشده است.', |
|
| 183 | - 'type' => 'error' |
|
| 184 | - ], |
|
| 181 | + 5448 => [ |
|
| 182 | + 'message' => 'عملیات درج درست اجرا نشده است.', |
|
| 183 | + 'type' => 'error' |
|
| 184 | + ], |
|
| 185 | 185 | |
| 186 | - 5447 => [ |
|
| 187 | - 'message' => 'عملیات پاک کردن درست اجرا نشده است.', |
|
| 188 | - 'type' => 'error' |
|
| 189 | - ], |
|
| 186 | + 5447 => [ |
|
| 187 | + 'message' => 'عملیات پاک کردن درست اجرا نشده است.', |
|
| 188 | + 'type' => 'error' |
|
| 189 | + ], |
|
| 190 | 190 | |
| 191 | - 5449 => [ |
|
| 192 | - 'message' => 'عملیات ویرایش درست اجرا نشده است.', |
|
| 193 | - 'type' => 'error' |
|
| 194 | - ] |
|
| 191 | + 5449 => [ |
|
| 192 | + 'message' => 'عملیات ویرایش درست اجرا نشده است.', |
|
| 193 | + 'type' => 'error' |
|
| 194 | + ] |
|
| 195 | 195 | |
| 196 | 196 | ]; |
@@ -2,201 +2,201 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - 'success' => [ |
|
| 6 | - |
|
| 7 | - 'insert' => 'The requested parameter is Added successfully!', |
|
| 8 | - |
|
| 9 | - 'delete' => 'The requested parameter is deleted successfully!', |
|
| 10 | - |
|
| 11 | - 'update' => 'The requested parameter is updated successfully!' |
|
| 12 | - |
|
| 13 | - ], |
|
| 14 | - |
|
| 15 | - 'fail' => [ |
|
| 16 | - |
|
| 17 | - 'insert' => 'The requested parameter is not Added!', |
|
| 18 | - |
|
| 19 | - 'delete' => 'The requested parameter is not deleted!', |
|
| 20 | - |
|
| 21 | - 'update' => 'The requested parameter is not updated!' |
|
| 22 | - |
|
| 23 | - ], |
|
| 24 | - |
|
| 25 | - 1001 => [ |
|
| 26 | - 'message' => 'Oops... Requested field is not found!', |
|
| 27 | - 'type' => 'error' |
|
| 28 | - ], |
|
| 29 | - |
|
| 30 | - 1002 => [ |
|
| 31 | - 'message' => 'Oops... Requested User does not exists!', |
|
| 32 | - 'type' => 'error' |
|
| 33 | - ], |
|
| 34 | - |
|
| 35 | - 1003 => [ |
|
| 36 | - 'message' => 'Oops... Client type is not entered!', |
|
| 37 | - 'type' => 'error' |
|
| 38 | - ], |
|
| 39 | - |
|
| 40 | - 1004 => [ |
|
| 41 | - 'message' => 'Failed because of duplicate', |
|
| 42 | - 'type' => 'error' |
|
| 43 | - ], |
|
| 44 | - |
|
| 45 | - 1005 => [ |
|
| 46 | - 'message' => 'Failed because of dablicated user role', |
|
| 47 | - 'type' => 'error' |
|
| 48 | - ], |
|
| 49 | - |
|
| 50 | - 3001 => [ |
|
| 51 | - 'message' => 'You are not logged on', |
|
| 52 | - 'type' => 'error', |
|
| 53 | - 'cat' => 'auth', |
|
| 54 | - 'short' => 'not-logged-on' |
|
| 55 | - ], |
|
| 56 | - |
|
| 57 | - 3002 => [ |
|
| 58 | - 'message' => 'Application token did not generated successfully', |
|
| 59 | - 'type' => 'error', |
|
| 60 | - 'cat' => 'auth' |
|
| 61 | - ], |
|
| 62 | - |
|
| 63 | - 3003 =>[ |
|
| 64 | - 'message' => 'User token did not generated successfully', |
|
| 65 | - 'type' => 'error', |
|
| 66 | - 'cat' => 'auth' |
|
| 67 | - ], |
|
| 68 | - |
|
| 69 | - 3004 => [ |
|
| 70 | - 'message' => 'Request token have no agency access', |
|
| 71 | - 'type' => 'error', |
|
| 72 | - 'cat' => 'auth' |
|
| 73 | - ], |
|
| 74 | - |
|
| 75 | - 3005 => [ |
|
| 76 | - 'message' => 'Request token did not contains user information', |
|
| 77 | - 'type' => 'error', |
|
| 78 | - 'cat' => 'auth' |
|
| 79 | - ], |
|
| 80 | - |
|
| 81 | - 3006 => [ |
|
| 82 | - 'message' => 'Did not set request token', |
|
| 83 | - 'type' => 'error', |
|
| 84 | - 'cat' => 'auth' |
|
| 85 | - ], |
|
| 86 | - |
|
| 87 | - 3007 => [ |
|
| 88 | - 'message' => 'can not decode the token', |
|
| 89 | - 'type' => 'error', |
|
| 90 | - 'cat' => 'auth' |
|
| 91 | - ], |
|
| 92 | - |
|
| 93 | - 3008 => [ |
|
| 94 | - 'message' => 'can not generate token for authentication', |
|
| 95 | - 'type' => 'error', |
|
| 96 | - 'cat' => 'auth' |
|
| 97 | - ], |
|
| 98 | - |
|
| 99 | - 3009 => [ |
|
| 100 | - 'message' => 'can not create token', |
|
| 101 | - 'type' => 'error', |
|
| 102 | - 'cat' => 'auth' |
|
| 103 | - ], |
|
| 104 | - |
|
| 105 | - 3010 => [ |
|
| 106 | - 'message' => 'Token expired!', |
|
| 107 | - 'type' => 'error', |
|
| 108 | - 'cat' => 'auth' |
|
| 109 | - ], |
|
| 110 | - |
|
| 111 | - 3011 => [ |
|
| 112 | - 'message' => 'Token is invalid!', |
|
| 113 | - 'type' => 'error', |
|
| 114 | - 'cat' => 'auth' |
|
| 115 | - ], |
|
| 116 | - |
|
| 117 | - 3012 => [ |
|
| 118 | - 'message' => 'Token Blacklisted', |
|
| 119 | - 'type' => 'error', |
|
| 120 | - 'cat' => 'auth' |
|
| 121 | - ], |
|
| 122 | - |
|
| 123 | - 3013 => [ |
|
| 124 | - 'message' => 'Payload invalid!', |
|
| 125 | - 'type' => 'error', |
|
| 126 | - 'cat' => 'auth' |
|
| 127 | - ], |
|
| 128 | - |
|
| 129 | - 3014 => [ |
|
| 130 | - 'message' => 'Claim Invalid', |
|
| 131 | - 'type' => 'error', |
|
| 132 | - 'cat' => 'auth' |
|
| 133 | - ], |
|
| 134 | - |
|
| 135 | - 3015 => [ |
|
| 136 | - 'message' => 'An error occurred on token validation', |
|
| 137 | - 'type' => 'error', |
|
| 138 | - 'cat' => 'auth' |
|
| 139 | - ], |
|
| 140 | - |
|
| 141 | - 3016 => [ |
|
| 142 | - |
|
| 143 | - 'message' => 'This domain has been blocked', |
|
| 144 | - 'type' => 'error' |
|
| 145 | - ], |
|
| 146 | - |
|
| 147 | - 5401 => [ |
|
| 148 | - 'message' => 'Authentication unauthorized...', |
|
| 149 | - 'type' => 'error' |
|
| 150 | - ], |
|
| 151 | - |
|
| 152 | - 5404 => [ |
|
| 153 | - 'message' => 'Oops... The requested page not found!', |
|
| 154 | - 'type' => 'error' |
|
| 155 | - ], |
|
| 156 | - |
|
| 157 | - 5405 => [ |
|
| 158 | - 'message' => 'Oops... The method you requested is not allowed!', |
|
| 159 | - 'type' => 'error' |
|
| 160 | - ], |
|
| 161 | - |
|
| 162 | - 5406 => [ |
|
| 163 | - 'message' => 'Oops... The parameters you entered are wrong!', |
|
| 164 | - 'type' => 'error' |
|
| 165 | - ], |
|
| 166 | - |
|
| 167 | - 5420 => [ |
|
| 168 | - 'message' => 'Validation Error', |
|
| 169 | - 'type' => 'error' |
|
| 170 | - ], |
|
| 171 | - |
|
| 172 | - 5422 => [ |
|
| 173 | - 'message' => 'Token is not valid', |
|
| 174 | - 'type' => 'error' |
|
| 175 | - ], |
|
| 176 | - |
|
| 177 | - 5445 => [ |
|
| 178 | - 'message' => 'Oops... Database connection refused', |
|
| 179 | - 'type' => 'error' |
|
| 180 | - ], |
|
| 5 | + 'success' => [ |
|
| 6 | + |
|
| 7 | + 'insert' => 'The requested parameter is Added successfully!', |
|
| 8 | + |
|
| 9 | + 'delete' => 'The requested parameter is deleted successfully!', |
|
| 10 | + |
|
| 11 | + 'update' => 'The requested parameter is updated successfully!' |
|
| 12 | + |
|
| 13 | + ], |
|
| 14 | + |
|
| 15 | + 'fail' => [ |
|
| 16 | + |
|
| 17 | + 'insert' => 'The requested parameter is not Added!', |
|
| 18 | + |
|
| 19 | + 'delete' => 'The requested parameter is not deleted!', |
|
| 20 | + |
|
| 21 | + 'update' => 'The requested parameter is not updated!' |
|
| 22 | + |
|
| 23 | + ], |
|
| 24 | + |
|
| 25 | + 1001 => [ |
|
| 26 | + 'message' => 'Oops... Requested field is not found!', |
|
| 27 | + 'type' => 'error' |
|
| 28 | + ], |
|
| 29 | + |
|
| 30 | + 1002 => [ |
|
| 31 | + 'message' => 'Oops... Requested User does not exists!', |
|
| 32 | + 'type' => 'error' |
|
| 33 | + ], |
|
| 34 | + |
|
| 35 | + 1003 => [ |
|
| 36 | + 'message' => 'Oops... Client type is not entered!', |
|
| 37 | + 'type' => 'error' |
|
| 38 | + ], |
|
| 39 | + |
|
| 40 | + 1004 => [ |
|
| 41 | + 'message' => 'Failed because of duplicate', |
|
| 42 | + 'type' => 'error' |
|
| 43 | + ], |
|
| 44 | + |
|
| 45 | + 1005 => [ |
|
| 46 | + 'message' => 'Failed because of dablicated user role', |
|
| 47 | + 'type' => 'error' |
|
| 48 | + ], |
|
| 49 | + |
|
| 50 | + 3001 => [ |
|
| 51 | + 'message' => 'You are not logged on', |
|
| 52 | + 'type' => 'error', |
|
| 53 | + 'cat' => 'auth', |
|
| 54 | + 'short' => 'not-logged-on' |
|
| 55 | + ], |
|
| 56 | + |
|
| 57 | + 3002 => [ |
|
| 58 | + 'message' => 'Application token did not generated successfully', |
|
| 59 | + 'type' => 'error', |
|
| 60 | + 'cat' => 'auth' |
|
| 61 | + ], |
|
| 62 | + |
|
| 63 | + 3003 =>[ |
|
| 64 | + 'message' => 'User token did not generated successfully', |
|
| 65 | + 'type' => 'error', |
|
| 66 | + 'cat' => 'auth' |
|
| 67 | + ], |
|
| 68 | + |
|
| 69 | + 3004 => [ |
|
| 70 | + 'message' => 'Request token have no agency access', |
|
| 71 | + 'type' => 'error', |
|
| 72 | + 'cat' => 'auth' |
|
| 73 | + ], |
|
| 74 | + |
|
| 75 | + 3005 => [ |
|
| 76 | + 'message' => 'Request token did not contains user information', |
|
| 77 | + 'type' => 'error', |
|
| 78 | + 'cat' => 'auth' |
|
| 79 | + ], |
|
| 80 | + |
|
| 81 | + 3006 => [ |
|
| 82 | + 'message' => 'Did not set request token', |
|
| 83 | + 'type' => 'error', |
|
| 84 | + 'cat' => 'auth' |
|
| 85 | + ], |
|
| 86 | + |
|
| 87 | + 3007 => [ |
|
| 88 | + 'message' => 'can not decode the token', |
|
| 89 | + 'type' => 'error', |
|
| 90 | + 'cat' => 'auth' |
|
| 91 | + ], |
|
| 92 | + |
|
| 93 | + 3008 => [ |
|
| 94 | + 'message' => 'can not generate token for authentication', |
|
| 95 | + 'type' => 'error', |
|
| 96 | + 'cat' => 'auth' |
|
| 97 | + ], |
|
| 98 | + |
|
| 99 | + 3009 => [ |
|
| 100 | + 'message' => 'can not create token', |
|
| 101 | + 'type' => 'error', |
|
| 102 | + 'cat' => 'auth' |
|
| 103 | + ], |
|
| 104 | + |
|
| 105 | + 3010 => [ |
|
| 106 | + 'message' => 'Token expired!', |
|
| 107 | + 'type' => 'error', |
|
| 108 | + 'cat' => 'auth' |
|
| 109 | + ], |
|
| 110 | + |
|
| 111 | + 3011 => [ |
|
| 112 | + 'message' => 'Token is invalid!', |
|
| 113 | + 'type' => 'error', |
|
| 114 | + 'cat' => 'auth' |
|
| 115 | + ], |
|
| 116 | + |
|
| 117 | + 3012 => [ |
|
| 118 | + 'message' => 'Token Blacklisted', |
|
| 119 | + 'type' => 'error', |
|
| 120 | + 'cat' => 'auth' |
|
| 121 | + ], |
|
| 122 | + |
|
| 123 | + 3013 => [ |
|
| 124 | + 'message' => 'Payload invalid!', |
|
| 125 | + 'type' => 'error', |
|
| 126 | + 'cat' => 'auth' |
|
| 127 | + ], |
|
| 128 | + |
|
| 129 | + 3014 => [ |
|
| 130 | + 'message' => 'Claim Invalid', |
|
| 131 | + 'type' => 'error', |
|
| 132 | + 'cat' => 'auth' |
|
| 133 | + ], |
|
| 134 | + |
|
| 135 | + 3015 => [ |
|
| 136 | + 'message' => 'An error occurred on token validation', |
|
| 137 | + 'type' => 'error', |
|
| 138 | + 'cat' => 'auth' |
|
| 139 | + ], |
|
| 140 | + |
|
| 141 | + 3016 => [ |
|
| 142 | + |
|
| 143 | + 'message' => 'This domain has been blocked', |
|
| 144 | + 'type' => 'error' |
|
| 145 | + ], |
|
| 146 | + |
|
| 147 | + 5401 => [ |
|
| 148 | + 'message' => 'Authentication unauthorized...', |
|
| 149 | + 'type' => 'error' |
|
| 150 | + ], |
|
| 151 | + |
|
| 152 | + 5404 => [ |
|
| 153 | + 'message' => 'Oops... The requested page not found!', |
|
| 154 | + 'type' => 'error' |
|
| 155 | + ], |
|
| 156 | + |
|
| 157 | + 5405 => [ |
|
| 158 | + 'message' => 'Oops... The method you requested is not allowed!', |
|
| 159 | + 'type' => 'error' |
|
| 160 | + ], |
|
| 161 | + |
|
| 162 | + 5406 => [ |
|
| 163 | + 'message' => 'Oops... The parameters you entered are wrong!', |
|
| 164 | + 'type' => 'error' |
|
| 165 | + ], |
|
| 166 | + |
|
| 167 | + 5420 => [ |
|
| 168 | + 'message' => 'Validation Error', |
|
| 169 | + 'type' => 'error' |
|
| 170 | + ], |
|
| 171 | + |
|
| 172 | + 5422 => [ |
|
| 173 | + 'message' => 'Token is not valid', |
|
| 174 | + 'type' => 'error' |
|
| 175 | + ], |
|
| 176 | + |
|
| 177 | + 5445 => [ |
|
| 178 | + 'message' => 'Oops... Database connection refused', |
|
| 179 | + 'type' => 'error' |
|
| 180 | + ], |
|
| 181 | 181 | |
| 182 | 182 | 5446 => [ |
| 183 | 183 | 'message' => 'Oops... Redis connection refused', |
| 184 | 184 | 'type' => 'error' |
| 185 | 185 | ], |
| 186 | 186 | |
| 187 | - 5448 => [ |
|
| 188 | - 'message' => 'Oops... Insert action was not successfully executed', |
|
| 189 | - 'type' => 'error' |
|
| 190 | - ], |
|
| 187 | + 5448 => [ |
|
| 188 | + 'message' => 'Oops... Insert action was not successfully executed', |
|
| 189 | + 'type' => 'error' |
|
| 190 | + ], |
|
| 191 | 191 | |
| 192 | - 5447 => [ |
|
| 193 | - 'message' => 'Oops... Delete action was not successfully executed', |
|
| 194 | - 'type' => 'error' |
|
| 195 | - ], |
|
| 192 | + 5447 => [ |
|
| 193 | + 'message' => 'Oops... Delete action was not successfully executed', |
|
| 194 | + 'type' => 'error' |
|
| 195 | + ], |
|
| 196 | 196 | |
| 197 | - 5449 => [ |
|
| 198 | - 'message' => 'Oops... Update action was not successfully executed', |
|
| 199 | - 'type' => 'error' |
|
| 200 | - ] |
|
| 197 | + 5449 => [ |
|
| 198 | + 'message' => 'Oops... Update action was not successfully executed', |
|
| 199 | + 'type' => 'error' |
|
| 200 | + ] |
|
| 201 | 201 | |
| 202 | 202 | ]; |