Skip to content

Commit 59bb804

Browse files
add FM 18 error codes
1 parent 5494289 commit 59bb804

File tree

3 files changed

+75
-1
lines changed

3 files changed

+75
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.5] - 2020-04-20
8+
- Add new errors for FileMaker 18
9+
710
## [1.0.4] - 2019-09-03
811
- Update package information
912

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"keywords": ["error", "status", "rest", "rest-api", "api", "filemaker", "filemaker pro", "laravel", "lumen"],
66
"homepage": "https://github.com/LuminFire/Laravel-FileMaker-Error-Helper",
7-
"version": "1.0.4",
7+
"version": "1.0.5",
88
"type": "library",
99
"authors": [
1010
{

src/Helper.php

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ class Helper
322322
'http' => 400,
323323
'message' => 'Password and verify password do not match',
324324
],
325+
219 => [
326+
'filemaker' => 219,
327+
'http' => 403,
328+
'message' => 'Cannot open file; must be licensed user; contact team manager',
329+
],
325330
300 => [
326331
'filemaker' => 300,
327332
'http' => 423,
@@ -832,6 +837,11 @@ class Helper
832837
'http' => 500,
833838
'message' => 'One or more containers failed to transfer',
834839
],
840+
870 => [
841+
'filemaker' => 870,
842+
'http' => 409,
843+
'message' => 'Cannot modify file because another user is modifying it',
844+
],
835845
900 => [
836846
'filemaker' => 900,
837847
'http' => 500,
@@ -1272,6 +1282,67 @@ class Helper
12721282
'http' => 500,
12731283
'message' => 'Connection is unencrypted',
12741284
],
1285+
1700 => [
1286+
'filemaker' => 1700,
1287+
'http' => 404,
1288+
'message' => 'Resource doesn’t exist',
1289+
],
1290+
1701 => [
1291+
'code' => 1701,
1292+
'http' => 503,
1293+
'message' => 'Host is currently unable to receive requests',
1294+
],
1295+
1296+
1702 => [
1297+
'code' => 1702,
1298+
'http' => 500,
1299+
'message' => 'Authentication information wasn’t provided in the correct format; verify the value of the Authorization header',
1300+
],
1301+
1703 => [
1302+
'code' => 1703,
1303+
'http' => 500,
1304+
'message' => 'Invalid username or password, or JSON Web Token',
1305+
],
1306+
1704 => [
1307+
'code' => 1704,
1308+
'http' => 405,
1309+
'message' => 'Resource doesn’t support the specified HTTP verb',
1310+
],
1311+
1705 => [
1312+
'code' => 1705,
1313+
'http' => 403,
1314+
'message' => 'Required HTTP header wasn’t specified',
1315+
],
1316+
1706 => [
1317+
'code' => 1706,
1318+
'http' => 400,
1319+
'message' => 'Parameter isn’t supported',
1320+
],
1321+
1707 => [
1322+
'code' => 1707,
1323+
'http' => 400,
1324+
'message' => 'Required parameter wasn’t specified in the request',
1325+
],
1326+
1708 => [
1327+
'code' => 1708,
1328+
'http' => 400,
1329+
'message' => 'Parameter value is invalid',
1330+
],
1331+
1709 => [
1332+
'code' => 1709,
1333+
'http' => 409,
1334+
'message' => 'Operation is invalid for the resource’s current status',
1335+
],
1336+
1710 => [
1337+
'code' => 1710,
1338+
'http' => 400,
1339+
'message' => 'JSON input isn’t syntactically valid',
1340+
],
1341+
1711 => [
1342+
'code' => 1711,
1343+
'http' => 503,
1344+
'message' => 'Host’s license has expired',
1345+
],
12751346
);
12761347

12771348
/**

0 commit comments

Comments
 (0)